Sunday, January 5, 2014

Rails: passing a variable to "render"

<%= render 'credit_card_info', :f => f %>

Then 'f' will be available as a local variable

http://stackoverflow.com/questions/4700617/pass-a-variable-into-a-partial-rails-3

No comments:

Post a Comment

Followers

Blog Archive