Controller not showing up

10 views
Skip to first unread message

Jan Yo

unread,
Apr 23, 2014, 12:45:26 PM4/23/14
to rubyonra...@googlegroups.com
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?

--
Posted via http://www.ruby-forum.com/.

Colin Law

unread,
Apr 23, 2014, 12:49:48 PM4/23/14
to rubyonra...@googlegroups.com
On 23 April 2014 17:45, Jan Yo <li...@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-ta...@googlegroups.com.
> To post to this group, send email to rubyonra...@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.
Reply all
Reply to author
Forward
0 new messages