dear frnds...... pls help me i hv stuck up in solving thw cookbook2 tutorial... in this i stuck at the point of creating views in which i have to create list.rhtml in views part of mine application and i have to change in my controller as def list @recipes=recipe.find_all end and now i am opening the link in my browser http://localhost:3000/recipe/list the page is not opening.the error which is dispaying on the page is as follows..... NameError in RecipeController#list undefined local variable or method `recipe'' for #<RecipeController: 0x4855b48> RAILS_ROOT: ./script/../config/.. Application Trace | Framework Trace | Full Trace #{RAILS_ROOT}/app/controllers/recipe_controller.rb:4:in `list'' Request Parameters: None Show session dump Response Headers: {"cookie"=>[], "Cache-Control"=>"no-cache"} this is the error which i am reciving in solving cookbook2 example..... pls help me in solving this problem.. i am very thankful to one who pls help me in solving this problem waiting for reply... --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
harsh wrote:> dear frnds...... > pls help me > i hv stuck up in solving thw cookbook2 tutorial... > in this i stuck at the point of creating views in which i have to > create list.rhtml in views part of mine application and i have to > change in my controller as > def list > @recipes=recipe.find_all > endWhile humans can tolerate a lack of capitalisation, ruby won''t. That should be Recipe. In addition find_all is deprecated (and probably removed by now), which suggests that you are following a rather out of date tutorial (you should write Recipe.find :all instead) Fred> and now i am opening the link in my browser http://localhost:3000/recipe/list > the page is not opening.the error which is dispaying on the page is as > follows..... > NameError in RecipeController#list > undefined local variable or method `recipe'' for #<RecipeController: > 0x4855b48> > RAILS_ROOT: ./script/../config/.. > Application Trace | Framework Trace | Full Trace > #{RAILS_ROOT}/app/controllers/recipe_controller.rb:4:in `list'' > Request > Parameters: None > Show session dump > Response > Headers: {"cookie"=>[], "Cache-Control"=>"no-cache"} > > this is the error which i am reciving in solving cookbook2 > example..... > > pls help me in solving this problem.. > i am very thankful to one who pls help me in solving this problem > waiting for reply...--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
sir after changing the path same is not running. template missing error is displaying there . pls help me in one other case that how i can link some data to wikipedia in ruby..?? On Jul 7, 11:59 am, harsh <harsh_shrid...-/E1597aS9LQAvxtiuMwx3w@public.gmane.org> wrote:> dear frnds...... > pls help me > i hv stuck up in solving thw cookbook2 tutorial... > in this i stuck at the point of creating views in which i have to > create list.rhtml in views part of mine application and i have to > change in my controller as > def list > @recipes=recipe.find_all > end > and now i am opening the link in my browserhttp://localhost:3000/recipe/list > the page is not opening.the error which is dispaying on the page is as > follows..... > NameError in RecipeController#list > undefined local variable or method `recipe'' for #<RecipeController: > 0x4855b48> > RAILS_ROOT: ./script/../config/.. > Application Trace | Framework Trace | Full Trace > #{RAILS_ROOT}/app/controllers/recipe_controller.rb:4:in `list'' > Request > Parameters: None > Show session dump > Response > Headers: {"cookie"=>[], "Cache-Control"=>"no-cache"} > > this is the error which i am reciving in solving cookbook2 > example..... > > pls help me in solving this problem.. > i am very thankful to one who pls help me in solving this problem > waiting for reply...--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 9 Jul 2008, at 17:49, harsh wrote:> > sir after changing the path same is not running. > template missing error is displaying there .I''d check that the template exists (in the right place, with appropriate capitalisation etc...) Fred> > pls help me in one other case that how i can link some data to > wikipedia in ruby..?? > > On Jul 7, 11:59 am, harsh <harsh_shrid...-/E1597aS9LQAvxtiuMwx3w@public.gmane.org> wrote: >> dear frnds...... >> pls help me >> i hv stuck up in solving thw cookbook2 tutorial... >> in this i stuck at the point of creating views in which i have to >> create list.rhtml in views part of mine application and i have to >> change in my controller as >> def list >> @recipes=recipe.find_all >> end >> and now i am opening the link in my browserhttp://localhost:3000/recipe/list >> the page is not opening.the error which is dispaying on the page is >> as >> follows..... >> NameError in RecipeController#list >> undefined local variable or method `recipe'' for #<RecipeController: >> 0x4855b48> >> RAILS_ROOT: ./script/../config/.. >> Application Trace | Framework Trace | Full Trace >> #{RAILS_ROOT}/app/controllers/recipe_controller.rb:4:in `list'' >> Request >> Parameters: None >> Show session dump >> Response >> Headers: {"cookie"=>[], "Cache-Control"=>"no-cache"} >> >> this is the error which i am reciving in solving cookbook2 >> example..... >> >> pls help me in solving this problem.. >> i am very thankful to one who pls help me in solving this problem >> waiting for reply... > >--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---