On 9 May 2012 16:56, Miguel A. <[email protected]> wrote: > > What's the actual error that you get? > > Can't mass-assign protected attributes: hphoto > app/controllers/hotels_controller.rb:52:in `new' > app/controllers/hotels_controller.rb:52:in `create' >
Have you tried attr_accessible :hphoto rather than (or in addition to) attr_accessible :hphoto_attributes ? > -- > 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 [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

