[Rails] Re: How to think in terms of MVC when designing a website.

2009-02-01 Thread Nebs Petrovic
Karel Minařík wrote: > you may want to look at discussion @ > http://blog.hasmanythrough.com/2008/4/2/simple-pages > > Re: your question: no, you'd definitely don't create "ContactInfo" > controller -- probably a Pages controller like the Josh Susser's (or > similar) solution. Finally... thank

[Rails] Where does index.html (home) fit into RoR?

2009-01-31 Thread Nebs Petrovic
The page that loads when no controller name is given in the URL is the public/index.html page (eg: http://localhost:3000/) Now this is a pure HTML page so I cannot use any link_to tags or yield tags, etc. My navigation bar is in my application layout (app/views/layouts/application.html.erb). Th

[Rails] Re: How to think in terms of MVC when designing a website.

2009-01-31 Thread Nebs Petrovic
Phlip wrote: > Because a clean design typically falls into three layers, you don't need > to > guess, before coding, what the design should be. Write what you need, > based on > the behaviors you add to each page. Refactor towards DRY, and you will > have the > right things in the right layers,

[Rails] Re: How to think in terms of MVC when designing a website.

2009-01-31 Thread Nebs Petrovic
> > Always remember that once you carve your design into stone, you can > never change > it. So make sure you get the design right before you start carving! > > (This is a winkie: ;^) That's why I'm posting this thread. -- Posted via http://www.ruby-forum.com/. --~--~-~--~~--

[Rails] How to think in terms of MVC when designing a website.

2009-01-31 Thread Nebs Petrovic
I'm fairly new to rails but I've read a book, many tutorials and watched video lectures so I'm starting to get a hang of how it works. I've now decided to jump in and create a rails app from scratch. I'm a little confused when it comes to going from concept to implementation using MVC. I unders

[Rails] How to reference the "public" folder from "app/views/..."

2009-01-30 Thread Nebs Petrovic
Hello, In my application.html.erb layout I have a reference to a .swf (flash movie) file that I want to embed. I put the swf file in the "public/flash" directory (I created the "flash" folder). My question is how do I get a reference to the "public" folder that rails created from within a view