Ruby on Rails Wednesday, August 14, 2013

On 13 August 2013 16:30, Dan D. <dan.dandrea@gmail.com> wrote:
> I have a Rails app that has only consisted of backend code so far (a little
> custom workflow engine, Redis, foreman, etc). Today I tried to add the first
> controller to the application, but I can't get the new controller to load.
>
> I used:
>
> rails generate controller CollectedData new --no-test-framework
>
> And got back:
>
> create app/controllers/collected_data_controller.rb
> route get "collected_data/new"
> invoke erb
> create app/views/collected_data
> create app/views/collected_data/new.html.erb
> invoke helper
> create app/helpers/collected_data_helper.rb
> invoke assets
> invoke coffee
> create app/assets/javascripts/collected_data.js.coffee
> invoke scss
> create app/assets/stylesheets/collected_data.css.scss
>
> And I also ran rake routes and got this:
>
> collected_data_new GET /collected_data/new(.:format) collected_data#new
>
> But whenever I load http://localhost:3000/collected_data/new in my browser,
> I get:
>
> Not Found: /collected_data/new

Is that exactly the error you are getting (and all it says)? Which
browser are you using? It seems an odd message, but if that is what
it says it suggests that the request is not getting through to rails
at all (you would get a routing error if it got as far as rails but
then could not be found). What do you see in development.log and in
the server window when you issue the request?

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%3D0gLvs8JXj8GNGrw%3DF2woduMwwBY-XQE%3Dynux2zogAKeaPqA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment