Ruby on Rails Thursday, January 24, 2013

<div id="new_campaign"
<%render :partial =>'new_campaign_partial'%>
</div>

<%= link_to_function "Add a campaign" do |page|
inser_html :bottom, :new_campaign, :partial=>'new_campaign_partial'
end%>



the partial is named new_campaign_partial.rhtml. It has just the html
code for creating certain text fiels and calendar

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment