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
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
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 :
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
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
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
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
7 matches
Mail list logo