On 18 January 2012 23:38, muhammad singgih zulfikar ansori
<[email protected]> wrote:
> oh sorry, here i attach the complete errors from test:
> [snip]
>>
>> ActionController::ActionControllerError in LineItemsController#create
>>
>> Cannot redirect to nil!
>>
>> Rails.root: /home/hirokakaoshi/Project/RoR/depot
>>
>> Application Trace | Framework Trace | Full Trace
>>
>> app/controllers/line_items_controller.rb:50:in `block (2 levels) in
>> create'
>> app/controllers/line_items_controller.rb:48:in `create'

That says the error is occurring in your code at line 50.  Perhaps it
would be useful if you posted that area of your code so that we can
see it.  Probably best to post the whole of the create method.  First
though, as I suggested in my previous post, look carefully at that
code and see if you can see why it might be trying to redirect to nil.

Colin

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to