maryguryanova-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2013-Aug-20 21:19 UTC
Cannot save object instance to database (Rails 3)
Hi all! I''m pretty new to Rails and got stuck a little. I''m trying to create new object instance via "new" form but nothing happens. I just get the same form (refreshed and empty) and all parameter that I had typed serialized in address bar after ? I tried to find help on stackoverflow, but we all together couldn''t figure out where is the error. So here is my code: http://stackoverflow.com/questions/18329452/cannot-save-object-to-database-rails-3 Please take a glance and help me to understand where I am wrong. All help is highly appreciated. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/f8a6b684-47ff-4dce-a84c-b7e676c5acd0%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
On 20 August 2013 22:19, <maryguryanova-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi all! > I''m pretty new to Rails and got stuck a little. > I''m trying to create new object instance via "new" form but nothing happens. > I just get the same form (refreshed and empty) and all parameter that I had > typed serialized in address bar after ? > I tried to find help on stackoverflow, but we all together couldn''t figure > out where is the error. > > So here is my code: > http://stackoverflow.com/questions/18329452/cannot-save-object-to-database-rails-3 > > Please take a glance and help me to understand where I am wrong. > All help is highly appreciated.First look in development.log to see what is happening. Also have a look at the Rails Guide on Debugging to see techniques that can be used to debug your code. Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLvfc70jT91XFPHQxHE79tFmf0%3DU-jdu1_xM_fCfEikvRQ%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.