Displaying 2 results from an estimated 2 matches for "primary_link".
2007 Jan 11
6
nil object while the required parameter are in the request
...ave all the parameters for as object appended in the url.
And there is an action in the controller like this
def newlet
render :layout=> false
@product = Product.new
if request.get?
@product.title= params[:title]
@product.description = params[:description]
@product.primary_link = params[:primary_link]
@product.image_url1 = params[:image_url1]
@product.primary_price = params[:primary_price]
end
end
And the url looks like
http://example.com/controllername/newlet?title=aaaa&description=bbbb&primary_link=cccc&image_url=dddd&primary_price=1220
An...
2007 Jan 12
9
Nil object in E1 capture the order
I''m following the depot application in the rails bible Agile Web
Development with Rails. In interation E1
NoMethodError in Admin#checkout
Showing app/views/admin/checkout.rhtml where line #12 raised:
You have a nil object when you didn''t expect it!
You might have expected an instance of Array.
The error occured while evaluating nil.include?
Extracted source (around line #12):