[Rails] Re: I get Error after creating product

2010-08-17 Thread Frederick Cheung
On Aug 17, 6:48 pm, Musdev Musdev wrote: > Thanks Chron, > that solution resolved my issue, I dropped the reference to show.html > and it worked perfect. > SO if the method is the same name as the view, I should never reference > that view in the controller inside the method definition? It's un

[Rails] Re: I get Error after creating product

2010-08-17 Thread Musdev Musdev
Ar Chron wrote: > You don't need to reference the show.html.erb in your controller... > template implementations have that "# show.html.erb" text as a reminder > of which view is invoked. > > def show > @product = Product.find(params[:id]) > respond_to do |format| > format.html # show.ht

[Rails] Re: I get Error after creating product

2010-08-17 Thread Ar Chron
You don't need to reference the show.html.erb in your controller... template implementations have that "# show.html.erb" text as a reminder of which view is invoked. def show @product = Product.find(params[:id]) respond_to do |format| format.html # show.html.erb format.xml { render :

[Rails] Re: I get Error after creating product

2010-08-17 Thread Musdev Musdev
Anubhaw Prakash wrote: > Hi, > stack level too deep error is not due to code modifications. > Taking a look at following article might solve your problem > 'http://dalibornasevic.com/posts/5-ruby-stack-level-too-deep-systemstackerror'. > > The error is due to system stack level being less then re

[Rails] Re: I get Error after creating product

2010-08-17 Thread Anubhaw Prakash
Hi, stack level too deep error is not due to code modifications. Taking a look at following article might solve your problem 'http://dalibornasevic.com/posts/5-ruby-stack-level-too-deep-systemstackerror'. The error is due to system stack level being less then required by application. Thanks, An

[Rails] Re: I get Error after creating product

2010-08-17 Thread Musdev Musdev
Anubhaw Prakash wrote: > Musdev Musdev wrote: >> I get the following error inside my browser: >> ActiveRecord::RecordNotFound in ProductsController#show >> >> Couldn't find Product without an ID >> > >> >> Request >> >> Parameters: >> >> {"id"=>"2"} >> >> The code on line 17 in my controlle

[Rails] Re: I get Error after creating product

2010-08-16 Thread Anubhaw Prakash
Musdev Musdev wrote: > I get the following error inside my browser: > ActiveRecord::RecordNotFound in ProductsController#show > > Couldn't find Product without an ID > > > Request > > Parameters: > > {"id"=>"2"} > > The code on line 17 in my controller looks like this > > def show > @p