search for: params_for

Displaying 2 results from an estimated 2 matches for "params_for".

2009 Jun 22
3
puppetshow
...l where line #3 raised: undefined method `[]'' for #<Enumerable::Enumerator:0xb716d700> Extracted source (around line #3): 1: <% if active_scaffold_config.action_links.any? { |link| link.type == :table } -%> 2: <div class="actions"> 3: <% new_params = params_for(:action => ''table'') %> 4: <% active_scaffold_config.action_links.each :table do |link| - %> 5: <% next if controller.respond_to? link.security_method and ! controller.send(link.security_method) -%> 6: <%= render_action_link(link, new_params) -%...
2009 May 02
10
Problem verifying routing error
Hi, When upgrading to rspec/rspec-rails 1.2.6 gem (from 1.1.12), I''m having a new problem verifying routes that should not exist. This is to support something like this in routes.rb: map.resources :orders do |orders| orders.resources :items, :except => [:index,:show] end I used to use lambda {}.should_raise( routing error ), but it stopped detecting any raised error.