search for: new_param

Displaying 6 results from an estimated 6 matches for "new_param".

Did you mean: new_params
2006 Sep 22
1
url_for params
...9; %> will redirect to the current controller. All very good. However, I sometimes want a url_for() which includes current parameters which aren''t in the route, for example I might want a link to preserve ?order=name in the query string. I''ve been using url_for(params.merge({:new_param => new_value})), but there''s a problem with controllers in modules # params == {:controller => ''sub/controller'', :action => ''action''} url_for params.merge({:new_param => new_value}) # ==> /sub/sub/controller/action?new_param=new_value t...
2009 Jun 22
3
puppetshow
...t_header.rhtml 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,...
2009 May 20
1
[PATCH server] split StorageVolumeService.svc_new into two methods.
...:MODIFY, at source_volume.storage_pool.hardware_pool) - if source_volume_id - @storage_pool = @source_volume.lvm_storage_pool - unless @storage_pool - # FIXME: what should we do about VG/LV names? - # for now auto-create VG name as ovirt_vg_#{@source_volume.id} - new_params = { :vg_name => "ovirt_vg_#{@source_volume.id}", - :hardware_pool_id => @source_volume.storage_pool.hardware_pool_id} - @storage_pool = StoragePool.factory(StoragePool::LVM, new_params) - @storage_pool.source_volumes << @source_volume - @storage_...
2009 May 19
1
re-sending outstanding controller refactoring patches after rebase
I've rebased the patch series to the current next branch and am sending them again.
2006 Nov 20
5
RMagick load problems?
...ould take 60 seconds.Loaded suite /usr/local/bin/mongrel_rails Started Finished in 0.000216 seconds. 0 tests, 0 assertions, 0 failures, 0 errors On the Gentoo server, I get an application error immediately when I try to go to the page that loads RMagick. In the controller I have: def new @new_params = { :type_of_chart => "dprs" } @daily_progress_chart = DailyProgressChart.new(@new_params) end daily_progress_chart.rb begins: require ''rvg/rvg'' require ''RMagick'' include Magick class DailyProgressChart < ActiveRecord::Base The chart is...
2001 Sep 30
3
UTF-8 stuff
...+46,8 @@ /* prototypes */ void usage(void); -void print_comments(FILE *out, vorbis_comment *vc, char *encoding); -int add_comment(char *line, vorbis_comment *vc, char *encoding); +void print_comments(FILE *out, vorbis_comment *vc); +int add_comment(char *line, vorbis_comment *vc); param_t *new_param(void); void parse_options(int argc, char *argv[], param_t *param); @@ -98,7 +97,7 @@ /* extract and display the comments */ vc = vcedit_comments(state); - print_comments(param->com, vc, param->encoding); + print_comments(param->com, vc);...