On 13 February 2015 at 17:27, Frédéric Champreux <lists@ruby-forum.com> wrote:
> The full console message is :
>
> ArgumentError (wrong number of arguments (2 for 1)):
> app/controllers/sessions_controller.rb:10:in `create'
>
> See the attached screenshot.
> ...
> Attachments:
> http://www.ruby-forum.com/attachment/10501/Screenshot.jpg
It would have been better to copy/paste the error from the server
terminal window as I asked, remember many still pay for bandwidth,
particularly on mobile devices.
That is rather odd, can you copy/paste the result of
rake routes
here please.
Assuming that does not show anything odd I would next try to home in
on the exact item that is causing the problem, possibly:
1. comment out the offending line and check that the error moves to
the second redirect_to just below.
2. modify the line first so as to redirect_to a plain string url, if
that fails in the same way it is an issue with redirect_to
3. if 2 now passes then try using root_url with a different function
and see if that passes.
Also possibly useful I think to post Gemfile.lock here.
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@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%3D0gLsqquOuELGkU0bO7yNpCuNJdcMp4_QD1H9o7JdK110%2BZg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment