Hi - this is my first day with Rails and to Ruby - so forgive any silliness on my part - however I will say that I am mighty impressed, I have worked through the movie tutorial and then decided to work on the views building on the tutorial. Now my reading of: http://ap.rubyonrails.org/classes/ActionController/Layout/ ClassMethods.html Has left me a little at a loss. Now I understand that I can include (render) - and that is what I have done successfully - just for fun. Question: Were do I stick my external style sheets is their some common place for them? Or do I just place theme in like a themes folder under views? The How To states: ==With layouts, you can flip it around and have the common structure know where to insert changing content. This means that the header and footer is only mentioned in one place, like this: <!-- The header part of this layout --> <%= @content_for_layout %> <!-- The footer part of this layout --> == Question: What is the "one place" - what files or dir is it talking about? I am guessing that <%= @content_for_layout %> is just an attribute not a method? I would then have a <%= @layout_toolbar %> or <%= @layout_menu %> and <%= @layout_footer %>? and then place those in my template view file -which one? But were are these <%= @content_for_layout %> defined - were is the html placed - ? Also for the records I think that documentation needs to updated here: ====Layouts reverse the common pattern of including shared headers and footers in many templates to isolate changes in repeated setups. The inclusion pattern has pages that look like this: <%= render "shared/header" %> Hello World <%= render "shared/footer" %> === Now I guessed that "shared" was a dir - Where this shared dir should go was not 100% clear, even if logic says /views/ people are not logical most often - however what header and footer were is a little vague ? What is it a folder or some file and if it is a file what is the extension of the file .rb or .rhtml or other? I think there should be note stating that header and footers are text files, AND that they are of a type XXX file format (I used .rhtml - are their any other recommendations?) HOWEVER that the extension MUST NOT be included. Can you tell me why that is - it causes a compiler error -? Only understood the above when I got a compile error and a bit of fudging around - and more compiler errors. Now I am sure if I did around enough in the documentation I would have come to read about this but - it should be made clear in the how to since it is often the first point of contact for people evaluating Rail. Finally - a Ruby question - what is a comment in Ruby - I was under the impression that it was a hash # char however this does not work in .rhtml files nor did the <%-- --%> only the html comment work? is there no Ruby specific comment? Thank now Kurt Ps, my name is Kurt and I am from Melbourne Australia.
Hi - is http://rubyonrails.com/ having hosting problems? Because I have been coming to the suite for two days and it has been up and down twice in that time? Is this usual? Kurt
Kent Sibilev
2004-Oct-19 12:43 UTC
Re: First day with Ruby and Rails - questions and views
1. You should place external style sheet in public/stylesheets directory. 2. Your layout template should be in app/view/layouts directory. 3. erb comment is <%# blah %> Cheers, Kent. On Oct 19, 2004, at 6:12 AM, helmutburri wrote:> Hi - this is my first day with Rails and to Ruby - so forgive any > silliness on my part - however I will say that I am mighty impressed, > I have worked through the movie tutorial and then decided to work on > the views building on the tutorial. > > Now my reading of: > > http://ap.rubyonrails.org/classes/ActionController/Layout/ > ClassMethods.html > > Has left me a little at a loss. Now I understand that I can include > (render) - and that is what I have done successfully - just for fun. > > Question: Were do I stick my external style sheets is their some > common place for them? Or do I just place theme in like a themes > folder under views? > > The How To states: > > ==> With layouts, you can flip it around and have the common structure > know where to insert changing content. This means that the header and > footer is only mentioned in one place, like this: > > <!-- The header part of this layout --> > <%= @content_for_layout %> > <!-- The footer part of this layout --> > ==> > Question: What is the "one place" - what files or dir is it talking > about? > > I am guessing that <%= @content_for_layout %> is just an attribute not > a method? I would then have a <%= @layout_toolbar %> or <%= > @layout_menu %> and <%= @layout_footer %>? and then place those in my > template view file -which one? > > But were are these <%= @content_for_layout %> defined - were is the > html placed - ? > > Also for the records I think that documentation needs to updated here: > > ====> Layouts reverse the common pattern of including shared headers and > footers in many templates to isolate changes in repeated setups. The > inclusion pattern has pages that look like this: > <%= render "shared/header" %> > Hello World > <%= render "shared/footer" %> > ===> > Now I guessed that "shared" was a dir - Where this shared dir should > go was not 100% clear, even if logic says /views/ people are not > logical most often - however what header and footer were is a little > vague ? What is it a folder or some file and if it is a file what is > the extension of the file .rb or .rhtml or other? > > I think there should be note stating that header and footers are text > files, AND that they are of a type XXX file format (I used .rhtml - > are their any other recommendations?) HOWEVER that the extension MUST > NOT be included. Can you tell me why that is - it causes a compiler > error -? > > Only understood the above when I got a compile error and a bit of > fudging around - and more compiler errors. > > Now I am sure if I did around enough in the documentation I would have > come to read about this but - it should be made clear in the how to > since it is often the first point of contact for people evaluating > Rail. > > Finally - a Ruby question - what is a comment in Ruby - I was under > the impression that it was a hash # char however this does not work in > .rhtml files nor did the <%-- --%> only the html comment work? is > there no Ruby specific comment? > > Thank now > > Kurt > > Ps, my name is Kurt and I am from Melbourne Australia. > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
> Hi - is http://rubyonrails.com/ having hosting problems? Because I > have been coming to the suite for two days and it has been up and down > twice in that time?This is the official URL: http://www.rubyonrails.org/ Lau
Being silly - still adding com to the end of everything. Thanks On 19/10/2004, at 10:59 PM, Lau Taarnskov wrote:>> Hi - is http://rubyonrails.com/ having hosting problems? Because I >> have been coming to the suite for two days and it has been up and >> down twice in that time? > > This is the official URL: http://www.rubyonrails.org/ > > Lau > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails
Hi - again. I have started to go through the API documentation and found this small snipped of: == Layout sharing for template reuse (think simple version of Struts Tiles) = Now having plaid with Rail a little more this is my understanding, please correct me if I am wrong. In my WeblogController class I define the name of my weblog_layout file like this:. layout "layouts/weblog_layout" question: how does it know that I placed my file in /views/layouts/ folder? This files is located in: /views/layouts/ and is called weblog_layout.rhtml Then in the files weblog_layout.rhtml I paste my HTML code: Like this: <html><body><%= @content_for_layout %></body></html> Now the third piece of the puzzle: the list.rhtml which was created way back in the demo and sits in the /views/weblog/ folder. The list.rhtml is the source of imbedded Ruby and is what get included into the /views/layouts/weblog_layout.rhtml files via this statement <%= @content_for_layout %> [Anyone mind telling what its real name is attribute was my old guess] at runtime. I think I nice UML diagram would go well to visually showing the relationship between these files - assuming I am on the right path. !!!!! If I am on the right track I would make up such an image for the site !!!!!! Question: how do I have multiple <%= @content_for_layout %> in a single document, with maybe a dozen things going on in different parts of a single layout? Question: Still Wondering about the style-sheets and image locations? Any pointers? Kurt
Lau Taarnskov
2004-Oct-19 14:20 UTC
Re: First day with Ruby and Rails - questions and views
On 19/10-2004, at 12.12, helmutburri wrote:> Hi - this is my first day with Rails and to Ruby - so forgive any > silliness on my part - however I will say that I am mighty impressed, > I have worked through the movie tutorial and then decided to work on > the views building on the tutorial. > > Now my reading of: > > http://ap.rubyonrails.org/classes/ActionController/Layout/ > ClassMethods.html > > Has left me a little at a loss. Now I understand that I can include > (render) - and that is what I have done successfully - just for fun. > > Question: Were do I stick my external style sheets is their some > common place for them? Or do I just place theme in like a themes > folder under views?place the files here: /public/stylesheets/mysheet.css in your HTML use: <link rel="Stylesheet" href="/stylesheet/mysheet.css" .... @content_for_layout is a "unique" variable for layouts. The ActionView docs don''t tell much ATM, I agree. Take a look at this: http://www.rubyonrails.org/show/HowtoWrapViewsWithLayouts and if it leaves you with any doubts, feel free to post questions on the Wiki-page. Lau
Hi - Lau - thanks for the images tip - I had a hunch that was going to be the way but did not act on it. I posted a second email on views - How is my understanding going in that one? if @content_for_layout is unique how can we have multiples in the same page? for different objects on the page? Kurt On 20/10/2004, at 12:20 AM, Lau Taarnskov wrote:> On 19/10-2004, at 12.12, helmutburri wrote: > >> Hi - this is my first day with Rails and to Ruby - so forgive any >> silliness on my part - however I will say that I am mighty impressed, >> I have worked through the movie tutorial and then decided to work on >> the views building on the tutorial. >> >> Now my reading of: >> >> http://ap.rubyonrails.org/classes/ActionController/Layout/ >> ClassMethods.html >> >> Has left me a little at a loss. Now I understand that I can include >> (render) - and that is what I have done successfully - just for fun. >> >> Question: Were do I stick my external style sheets is their some >> common place for them? Or do I just place theme in like a themes >> folder under views? > > place the files here: /public/stylesheets/mysheet.css > in your HTML use: <link rel="Stylesheet" > href="/stylesheet/mysheet.css" .... > > @content_for_layout is a "unique" variable for layouts. The ActionView > docs don''t tell much ATM, I agree. Take a look at this: > http://www.rubyonrails.org/show/HowtoWrapViewsWithLayouts and if it > leaves you with any doubts, feel free to post questions on the > Wiki-page. > > Lau > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails
Lau Taarnskov
2004-Oct-19 14:50 UTC
Re: First day with Ruby and Rails - questions and views
> if @content_for_layout is unique how can we have multiples in the same > page? for different objects on the page?You can define variables in your controller. eg: def index @message = "Hi, you!" end in your template you can print out the message: <%= @message %> This has nothing to do with layouts, but is basic template functionality. Layouts are for wrapping stuff around templates - inverting the include loop. -- Lau
Lau Taarnskov
2004-Oct-19 15:08 UTC
Re: First day with Ruby and Rails - questions and views
> This has nothing to do with layouts, but is basic template > functionality. Layouts are for wrapping stuff around templates - > inverting the include loop.It should have read: "Layouts are _simply_ for"...
Hi again - maybe I missing the obvious but here goes: I placed this: def index @message = "Scuttlebug" end in my controller and I placed this: Welcome to <%= @message %> In my weblog_layout.rhtml However only the words "Welcome to" appears. Now from reading the Learning Ruby book, a def index end Defines a method, and its states that you needs to call that index method to make it work. However were am I invoking this "index" method? so as to gain access to the message, variable? And why is the message not showing up. Kurt On 20/10/2004, at 12:50 AM, Lau Taarnskov wrote:>> if @content_for_layout is unique how can we have multiples in the >> same page? for different objects on the page? > > You can define variables in your controller. > eg: > > def index > @message = "Hi, you!" > end > > in your template you can print out the message: > <%= @message %> > > This has nothing to do with layouts, but is basic template > functionality. Layouts are for wrapping stuff around templates - > inverting the include loop. > > -- > Lau > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails
Michel Rasschaert
2004-Oct-19 15:36 UTC
Re: First day with Ruby and Rails - questions and views
It calls index when you go to http://path_to_rails/controller_name/index or http://path_to_rails/controller_name/ because index is the default action for controllers. Michel On Wed, 20 Oct 2004 01:24:51 +1000, helmutburri <helmutburri-97jfqw80gc6171pxa8y+qA@public.gmane.org> wrote:> Hi again - maybe I missing the obvious but here goes: > > I placed this: > > def index > @message = "Scuttlebug" > end > > in my controller > > and I placed this: > > Welcome to <%= @message %> > > In my weblog_layout.rhtml > > However only the words "Welcome to" appears. > > Now from reading the Learning Ruby book, a > > def index > > end > > Defines a method, and its states that you needs to call that index > method to make it work. > > However were am I invoking this "index" method? so as to gain access to > the message, variable? > > And why is the message not showing up. > > > > Kurt > > On 20/10/2004, at 12:50 AM, Lau Taarnskov wrote: > > >> if @content_for_layout is unique how can we have multiples in the > >> same page? for different objects on the page? > > > > You can define variables in your controller. > > eg: > > > > def index > > @message = "Hi, you!" > > end > > > > in your template you can print out the message: > > <%= @message %> > > > > This has nothing to do with layouts, but is basic template > > functionality. Layouts are for wrapping stuff around templates - > > inverting the include loop. > > > > -- > > Lau > > > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Dale K. Hawkins
2004-Oct-19 15:43 UTC
Re: First day with Ruby and Rails - questions and views
You do not call the index function directly. This is done by the rails framework. index is called by hitting the url "<object>/", whereas "show" would be called for "<object>/show/1" (specifically call show with @id set to one(1) ). In the movie, for example, hitting the url "http://blog/weblog/" actually calls the index method for the Weblog class. I believe that the "index" method is really the only method which is implicitly invoked. Most of the time the method name corresponds directly to the url. Watch the movie again, and you''ll see that the first time the http://blog/weblog/ url is accessed, there is an error throw stating that the index method is not defined. On Wed, 20 Oct 2004 01:24:51 +1000, helmutburri <helmutburri-97jfqw80gc6171pxa8y+qA@public.gmane.org> wrote:> Hi again - maybe I missing the obvious but here goes: > > I placed this: > > def index > @message = "Scuttlebug" > end > > in my controller > > and I placed this: > > Welcome to <%= @message %> > > In my weblog_layout.rhtml > > However only the words "Welcome to" appears. > > Now from reading the Learning Ruby book, a > > def index > > end > > Defines a method, and its states that you needs to call that index > method to make it work. > > However were am I invoking this "index" method? so as to gain access to > the message, variable? > > And why is the message not showing up. > > > > Kurt > > On 20/10/2004, at 12:50 AM, Lau Taarnskov wrote: > > >> if @content_for_layout is unique how can we have multiples in the > >> same page? for different objects on the page? > > > > You can define variables in your controller. > > eg: > > > > def index > > @message = "Hi, you!" > > end > > > > in your template you can print out the message: > > <%= @message %> > > > > This has nothing to do with layouts, but is basic template > > functionality. Layouts are for wrapping stuff around templates - > > inverting the include loop. > > > > -- > > Lau > > > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Lau Taarnskov
2004-Oct-19 15:59 UTC
Re: First day with Ruby and Rails - questions and views
> I placed this: > > def index > @message = "Scuttlebug" > end > > in my controller > > and I placed this: > > Welcome to <%= @message %> > > In my weblog_layout.rhtml >Don''t think layouts. I suggest that you forget layouts for a second, until you completely understand the basic ActionPack templating. Put "Welcome to <%= @message %>" in /app/views/weblog/index.rhtml Then go to http://myrailsapp/weblog/index I think some documentation about this is missing from the API, so it''s no wonder that it''s a bit confusing. -- Lau
Tobias Luetke
2004-Oct-19 16:08 UTC
Re: First day with Ruby and Rails - questions and views
I''m sure if you revisit the 10 mins presentation with your new practical knowledge about rails you will discover a lot of answers to the questions you are having. Also there is always http://www.rubyonrails.org/show/Tutorial Layouts are just an solution to a problem you haven''t encountered yet. They are there for putting a common wrapping around all your custom views ( read: pages ) On Tue, 19 Oct 2004 17:59:49 +0200, Lau Taarnskov <mailinglistlau-1Sbz49+wllwWvROdMmqm3g@public.gmane.org> wrote:> > I placed this: > > > > def index > > @message = "Scuttlebug" > > end > > > > in my controller > > > > and I placed this: > > > > Welcome to <%= @message %> > > > > In my weblog_layout.rhtml > > > > Don''t think layouts. I suggest that you forget layouts for a second, > until you completely understand the basic ActionPack templating. > > Put "Welcome to <%= @message %>" in > > /app/views/weblog/index.rhtml-- Tobi
Florian Weber
2004-Oct-19 16:17 UTC
Re: First day with Ruby and Rails - questions and views
On Oct 19, 2004, at 17:43 Uhr, Dale K. Hawkins wrote:> You do not call the index function directly. This is done by the > rails framework. > > index is called by hitting the url "<object>/", whereas "show" would > be called for "<object>/show/1" (specifically call show with @id set > to one(1) ). > > In the movie, for example, hitting the url "http://blog/weblog/" > actually calls the index method for the Weblog class. > > I believe that the "index" method is really the only method which is > implicitly invoked. Most of the time the method name corresponds > directly to the url. Watch the movie again, and you''ll see that the > first time the http://blog/weblog/ url is accessed, there is an error > throw stating that the index method is not defined.all that is done via mod_rewrite: RewriteRule ^([-_a-zA-Z0-9]+)/$ /dispatch.cgi?controller=$1&action=index [QSA] [L]
I watched the movie again and I can see what you re talking about -I think. Now I did the tutorial and the call the weblog/farside or weblog/index are just invoking the methods in the controller by those names. Now I have a file called weblogs/index.rhtml that looks like this: ===================================require ''abstract_application'' require ''weblog_helper'' require ''post'' class WeblogController < AbstractApplicationController include WeblogHelper scaffold :post layout "layouts/weblog_layout" def index @message = "Scuttlebug" end end =================================== And my index.rhtml looks like this: ===================================Welcome to <%= @message %> <% for post in @posts %> <br />Title: <%= post.entry_title %> <br />Summery: <%= post.entry_metadata %> <%= link_to "Edit post", :action => "edit", :id => post.id %> <% end %> =================================== BUT now I get an Error ==================================NoMethodErrorin Weblog#index Showing /weblog/index.rhtml where line #4 raised undefined method `each'' for nil:NilClass 1: Welcome to <%= @message %> 2: 3: 4: <% for post in @posts %> 5: 6: <br />Title: <%= post.entry_title %> 7: <br />Summery: <%= post.entry_metadata %> ================================== What up? I am missing a method? ''each'' I believe? Confused It is 3 am in the morning almost and I really want to get this message to show. Tomorrow I will work my way thought the http://www.rubyonrails.org/show/Tutorial pages Kurt
Tobias Luetke
2004-Oct-19 16:23 UTC
Re: First day with Ruby and Rails - questions and views
Welcome to ruby, In line 4 you say <% for post in @posts %> which in ruby is an alias for @posts.each { |post| [...] } Now, since you never assigned @posts in your controller ( method index ) it is obviously Nil. There is no method each for objects of type Nil ( neither should there be ) so you get this error. If you think that @posts might be empty you can always add " unless @posts.nil?" right behind the end. Now, how did this block even get there? On Wed, 20 Oct 2004 02:18:27 +1000, helmutburri <helmutburri-97jfqw80gc6171pxa8y+qA@public.gmane.org> wrote:> I watched the movie again and I can see what you re talking about -I > think. > > Now I did the tutorial and the call the weblog/farside or weblog/index > are just invoking the methods in the controller by those names. > > Now I have a file called weblogs/index.rhtml that looks like this: > > ===================================> require ''abstract_application'' > require ''weblog_helper'' > require ''post'' > > class WeblogController < AbstractApplicationController > include WeblogHelper > > scaffold :post > > layout "layouts/weblog_layout" > > def index > @message = "Scuttlebug" > end > > end > ===================================> > And my index.rhtml looks like this: > > ===================================> Welcome to <%= @message %> > > <% for post in @posts %> > > <br />Title: <%= post.entry_title %> > <br />Summery: <%= post.entry_metadata %> > > <%= link_to "Edit post", :action => "edit", :id => post.id %> > <% end %> > ===================================> > BUT now I get an Error > > ==================================> NoMethodErrorin Weblog#index > Showing /weblog/index.rhtml where line #4 raised undefined method > `each'' for nil:NilClass > 1: Welcome to <%= @message %> > 2: > 3: > 4: <% for post in @posts %> > 5: > 6: <br />Title: <%= post.entry_title %> > 7: <br />Summery: <%= post.entry_metadata %> > ==================================> > What up? I am missing a method? ''each'' I believe? Confused > > It is 3 am in the morning almost and I really want to get this message > to show. > > Tomorrow I will work my way thought the > > http://www.rubyonrails.org/show/Tutorial pages > > Kurt > > > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Tobi
this block came from the tutorial movie - Line for line - I will pick this up in the morning. Thanks for Every ones help... Kurt On 20/10/2004, at 2:23 AM, Tobias Luetke wrote:> Welcome to ruby, > > In line 4 you say <% for post in @posts %> which in ruby is an alias > for > > @posts.each { |post| > > [...] > > } > > Now, since you never assigned @posts in your controller ( method index > ) it is obviously Nil. > There is no method each for objects of type Nil ( neither should there > be ) so you get this error. > > If you think that @posts might be empty you can always add " unless > @posts.nil?" right behind the end. > > Now, how did this block even get there? > > > > On Wed, 20 Oct 2004 02:18:27 +1000, helmutburri > <helmutburri-97jfqw80gc6171pxa8y+qA@public.gmane.org> wrote: >> I watched the movie again and I can see what you re talking about -I >> think. >> >> Now I did the tutorial and the call the weblog/farside or weblog/index >> are just invoking the methods in the controller by those names. >> >> Now I have a file called weblogs/index.rhtml that looks like this: >> >> ===================================>> require ''abstract_application'' >> require ''weblog_helper'' >> require ''post'' >> >> class WeblogController < AbstractApplicationController >> include WeblogHelper >> >> scaffold :post >> >> layout "layouts/weblog_layout" >> >> def index >> @message = "Scuttlebug" >> end >> >> end >> ===================================>> >> And my index.rhtml looks like this: >> >> ===================================>> Welcome to <%= @message %> >> >> <% for post in @posts %> >> >> <br />Title: <%= post.entry_title %> >> <br />Summery: <%= post.entry_metadata %> >> >> <%= link_to "Edit post", :action => "edit", :id => post.id %> >> <% end %> >> ===================================>> >> BUT now I get an Error >> >> ==================================>> NoMethodErrorin Weblog#index >> Showing /weblog/index.rhtml where line #4 raised undefined method >> `each'' for nil:NilClass >> 1: Welcome to <%= @message %> >> 2: >> 3: >> 4: <% for post in @posts %> >> 5: >> 6: <br />Title: <%= post.entry_title %> >> 7: <br />Summery: <%= post.entry_metadata %> >> ==================================>> >> What up? I am missing a method? ''each'' I believe? Confused >> >> It is 3 am in the morning almost and I really want to get this message >> to show. >> >> Tomorrow I will work my way thought the >> >> http://www.rubyonrails.org/show/Tutorial pages >> >> Kurt >> >> >> >> _______________________________________________ >> Rails mailing list >> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >> http://lists.rubyonrails.org/mailman/listinfo/rails >> > > > -- > Tobi > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails
Lau Taarnskov
2004-Oct-19 20:39 UTC
Re: First day with Ruby and Rails - questions and views
Hi Helmut, On 19/10-2004, at 18.18, helmutburri wrote:> Now I have a file called weblogs/index.rhtml that looks like this: > > ===================================> require ''abstract_application'' > require ''weblog_helper'' > require ''post'' > > class WeblogController < AbstractApplicationController >This should be called app/controllers/weblog_controller.rb and not weblogs/index.rhtml -- Lau Taarnskov