rubyonrailsin

A Ruby and Rails talk

Monday, March 22, 2010


[spree-user] Re: User Personalisation of Products

by rubyonrailsin 0 comments

Tag


Share this post:
Design Float
StumbleUpon
Reddit

I've successfully built my personalisation_options model, and I have
associated them with a product. I have succeeded in adding
personalisation_options to a product using script/console.

However, I would now like to present the data in my admin interface.

I would like to know how I can use

<% f.fields_for :personalisation_options do |builder| %>
<%= render "personalisation_options_fields", :f => builder %>
<% end %>

Within the admin view for product editing (I'm following railscasts
#196 and 197).

I know that I could replace the whole editing view - but that feels
like cracking a nut with a sledgehammer. How else could I simply add
this functionality to the end of the form.

Thanks for the help so far.

Michael

--
You received this message because you are subscribed to the Google Groups "Spree" group.
To post to this group, send email to spree-user@googlegroups.com.
To unsubscribe from this group, send email to spree-user+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/spree-user?hl=en.

No comments:

Post a Comment

Subscribe feeds via e-mail

Blog Archive