PDA

View Full Version : What about a "Layouts" table?


jeremy
July 3rd, 2005, 10:50 AM
I am a bit new to rails (and really ruby in general...but I have found my new favorite web framework/programming language), and in learning rails I noticed that it 'restricts' you from having views for 'layouts'. I mean that if you generate scaffold code for a table name 'layouts', it will conflict with the layouts directory. It generates all the files, but puts them in the layouts directory, which conceivable cause a conflict if you also needed a layout for a 'show' controller for example. This isn't a problem that I am facing, just an observation that I could see being problematic at some point.

rob
July 3rd, 2005, 01:22 PM
Although I don't know 100% on this one, I would say that layouts would be a reserved word. Perhaps you could use mylayouts perhaps for your table name?

I don't see a workaround really..

Rob