On 23 April 2014 17:45, Jan Yo <lists@ruby-forum.com> wrote:
> I used "rails g scaffold_controller xx".
>
> It generated everything okay. I restarted httpd (web server).
>
> But, the controller won't show up...did a rake routes and it doesn't
> show up there.
>
> Any ideas on how to get my web app to recognize my new controller with
> views?
I don't know whether the command you posted will automatically put an
entry in routes.rb. Have a look and if it has not then you will need
to do it yourself.
If you don't know how routes work then before doing anything else work
right through a good tutorial such as railstutorial.org, which is free
to use online. That will show you the basics of Rails.
Colin
>
> --
> 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 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/76e1b029a4e71784132e4ec6a9d0bce1%40ruby-forum.com.
> For more options, visit https://groups.google.com/d/optout.
--
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%3D0gLubm6o9BU9jD9LcGyfKLg0tf4h6mjdmJ5%3D2sr45iHY5qA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment