I am describing what I am trying to accomplish: I want to create a main welcome page. So I ran script/generate admin/welcome. This created welcome controller Then I wanted to attach this welcome controller to the main application.html.erb In the application.html.erb file I want to show a ‘login’ control and two action buttons: ‘suppliers’ and ‘contractors’. This means somehow I have to create three controllers: ‘login’, ‘suppliers’, and ‘contractors’. - Should I create all three controllers under admin? - How to connect my welcome controller to these three controllers and get to display the application.html.erb file I do not know if I am thinking in the correct direction also? Please help? -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
A "welcome" controller probably shouldn''t be part of your admin interface... usually that name is used for the site landing page. Or am I misunderstanding the purpose of your page? Is it the main screen of your admin section? A "login" controller depends on how you''re making your user accounts. I''m using AuthLogic, so I have a mapping from /login to /user_session/new. ''Suppliers'' and ''contractors'' both sound like RESTful resources. You can just make them with the scaffold generator and then editing the views. You don''t need to use the application layout explicitly. It''ll be used by default. See here: http://guides.rubyonrails.org/layouts_and_rendering.html -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Possibly Parallel Threads
- RSpec with Rails 3.1rc4: spec test won't recognize <%= %> (should be simple)
- NoMethodError in User sessionsController#create - Authlogic
- Setting a root_url
- AuthLogic Question - one time password (persistence_token) - what config is required to use this???
- desperate, errors with file upload