Tuesday, August 28, 2012

[Rails] Re: ArgumentError in HomeController#index

Travis Mc wrote in post #1073628:
> Hey guys, I'm new to ruby/rails and trying to sort something...
>
> I just created an app with composer,
> http://railsapps.github.com/rails-composer/
>
> I used the command:
>
> rails new myapp -m
> https://raw.github.com/RailsApps/rails-composer/master/composer.rb
>
> I set up the rails server, and tried to load the app on localhost:3000
>
> However, I end up with:
>
> ArgumentError in HomeController#index
>
> Need a handler. Supply an options hash that has a :with key as the last
> argument.
>
>
>
>
> I'm not sure what to do here, any help or pointing me in the right
> direction is greatly appreciated.

I just got this error as well, and it can be fixed by removing
"protect_from_forgery" in /app/controllers/application_controller. I'm
very new to ROR so I'm not sure what the implications will be for doing
this though...

--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate