On 8 February 2015 at 20:59, Charles Kronk <li...@ruby-forum.com> wrote: > (Apologies in advance...I can't seem to format this post > correctly...before answering, please let me know how to force > newlines/format code!!)
That is more a matter of knowing how to control your email program is it not? We can't really help with that here. > > I've seen this error often and have tried to get to understand it based > on other posts, but to no avail. > > > I'm very new to Rails and so my lack of knowledge of the theoretical > framework here is likely the cause of this pitfall, but I would > absolutely love it if someone could please lead me up to what exactly > needs to change to avoid the error: > > > The exact error is: > > > Application(#70358560838160) expected, got String(#18246440) > > > Extracted source (around line #27): > > >> # POST /applications.json >> def create >> @application = Application.new(application_params) I suspect, though not certain, that Application may be a reserved word. Apart from anything else are you not going to get confused with a file application_controller.rb and another applications_controller.rb? I suggest trying a different model name. 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+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLsnmAczegDtA-gOBCFQOAH2jOMXZYCi6jD-2muW%3DSB%3D0Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.