Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

tvdeyen's latest activity

Tuesday, November 02 2010
5904 'render :template' does not halt filter chain was updated in Ruby on Rails
  • tvdeyen
    tvdeyen commented at 8:53 AM

    This is the error message:

    ActionView::TemplateError (Called id for nil, which would mistakenly be 4 -- if you really wanted the id of nil, use object_id) on l...
Monday, November 01 2010
5904 'render :template' does not halt filter chain was updated in Ruby on Rails
  • tvdeyen
    tvdeyen commented at 7:39 PM

    Ok, thanks so far.

  • tvdeyen
    tvdeyen commented at 4:12 PM

    This is sample code. I can't post the actual code here, because of privacy/legal terms. But the concept is exactly the same.

    Maybe I explain what I want to achi...

  • tvdeyen
    tvdeyen commented at 1:46 PM

    It's Rails 2.3.9

    @order is nil inside the Order#new view. So you see, the Order#new method is called. What should not happen, because the before_filter should h...

  • tvdeyen
    tvdeyen commented at 1:09 PM

    Sorry, this is not true. The Error comes from the action which is called, because the filter chain does not halt! Not from the template. This is my template. So...

  • tvdeyen
    tvdeyen created the ticket at 12:31 PM

    Rendering a template (a view from a specific controller) does not halt the filter chain, but rendering a file halts the chain.

    class Order < ApplicationControl...
Wednesday, September 01 2010
4808 Textarea input silently truncated in 2.3.8! was updated in Ruby on Rails
  • tvdeyen
    tvdeyen commented at 12:40 PM

    +1 from me. Have to go back to 2.3.5 for my App now. Then quotes are submitted correctly.

Thursday, January 28 2010
3507 rake tasks at different plugin path disappearing after rails update was updated in Ruby on Rails
  • tvdeyen
    tvdeyen commented at 8:59 PM

    I've got it!

    It should be import instead of require.
    So, the rake file for including custom rakefiles in folders different from vendor/plugins/ should look like...

  • tvdeyen
    • Tag set to engines, plugins, rake
    • Title changed from rake tasks at different plugin path to rake tasks at different plugin path disappearing after rails update
    by tvdeyen at 8:22 PM

    It should be:

    Dir.glob(File.dirname(__FILE__) + "/../../vendor/new_folder/**/tasks/*.rake").each do |rake_file|
      require rake_file
    end
    

    but this is not workin...