[Rails] Re: question on layouts

2010-05-24 Thread Joao Silva
I understand the idea of having apache serving static content but anyways what do you think about this as i am with similar question in mind. #controller class HomeController ApplicationController def index page = params['page'] if page begin render page_views/ + page

[Rails] Re: question on layouts

2010-05-24 Thread Joao Silva
I understand the idea of having apache serving static content but anyways what do you think about this as i am with similar question in mind. #controller class HomeController ApplicationController def index page = params['page'] if page begin # page var is the same as

[Rails] Re: question on layouts

2010-05-23 Thread John Merlino
nirosh wrote: write the function @ application_controller that can be access in any controller. for more info read abt application controller doc. nirosh Hey thanks for the response. What about the image paths. This is in css and it's not linking to the images folder: background: #b8e5d1

Re: [Rails] Re: question on layouts

2010-05-23 Thread Hassan Schroeder
On Sun, May 23, 2010 at 5:07 AM, John Merlino li...@ruby-forum.com wrote: nirosh wrote: write the function @ application_controller that can be access in any controller. for more info read abt application controller doc. Or create a utility controller, call it home or whatever, that handles

[Rails] Re: question on layouts

2010-05-23 Thread Marnen Laibow-Koser
John Merlino wrote: Hey all, Does any have suggestions to whether I should create a controller for every web page on my site or just create an action for every web page in same controller if those actions will never require database calls? Do neither. Use a single controller action for your

Re: [Rails] Re: question on layouts

2010-05-23 Thread Bill Walton
On Sun, May 23, 2010 at 9:12 AM, Marnen Laibow-Koser li...@ruby-forum.comwrote: John Merlino wrote: Hey all, Does any have suggestions to whether I should create a controller for every web page on my site or just create an action for every web page in same controller if those actions

[Rails] Re: question on layouts

2010-05-22 Thread nirosh
write the function @ application_controller that can be access in any controller. for more info read abt application controller doc. nirosh -- 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