Ruby on Rails Thursday, January 24, 2013




On Fri, Jan 25, 2013 at 3:47 PM, suchi gupta <lists@ruby-forum.com> wrote:
<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%>

If I remember correctly, link_to_function does not accept a block
 



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.





--
-------------------------------------------------------------
visit my blog at http://jimlabs.heroku.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