search for: with_indifferent_access

Displaying 12 results from an estimated 12 matches for "with_indifferent_access".

2012 Aug 16
6
undefined method `with_indifferent_access' for "":String
...ent_contribuyente.comps.build(params[:comp]).valid? it returns: IndexError (string not matched) And when I try to update directly the comp directly it return this error: @comp = current_contribuyente.comps.find(params[:id]) @comp.update_attributes(params[:comp]) NoMethodError (undefined method `with_indifferent_access'' for "":String): This is the code from the view where I create this elements = form_for @comp, :html => {:id => "new_form", :onsubmit => "return validate_form()"}, :remote => true do |f| = f.fields_for :comprobante_emis_regs_attributes do |cer|...
2006 Apr 10
4
has render_component changed?
I have an application that worked fine, but after the recent updates has broken in some calls to render_component from views. I might be missing something but as far as I remember Rails updates is the only thing I''ve done in between. See the log: *** START LOG SNIPPET Start rendering component ({:params=> {:center_id=>10, :id=>25},
2005 May 12
26
performance update
I have made additional progress with regard to performance. My latest data: configuration 1: r121.latest configuration 2: r121p.latest page c1 real c2 real c1 r/s c2 r/s c1/c2 /empty/index 6.75525 1.71983 148.0 581.5 3.93 /welcome/index 6.89044 1.89244 145.1 528.4 3.64 /rezept/index 4.99573
2006 Jun 14
5
Converting Hash to and from URL params
I''m sure this is easy since rails does this internally, but I need to convert a string of url formatted variables "foo=bar&baz=snoo&why=because" to a hash, and I need to convert a hash to url format. Now before I roll my own methods to do this, does rails expose this functionality somehow? -- Posted via http://www.ruby-forum.com/.
2010 Sep 03
2
Problema con parámetros en collection_select (No novato)
Hola a tod@s, Les cuento... Tengo lo siguiente en aplicación: Una página donde esta mi modelo docencia que a su vez le voy agregando todos los dictados de carreras: <fieldset> <% f.fields_for :dictados do |dictado_form| %> <%= render :partial => ''dictado'', :locals => { :f => dictado_form } %> <% end %> <%= add_child_link
2005 Mar 15
0
0.10.0, Routes and Query strings
.../Library/WebServer/sidewayspony/public/../config/..//vendor/activesupport/lib/active_support/core_ext/hash/indifferent_access.rb:33:in `new'' from /Library/WebServer/sidewayspony/public/../config/..//vendor/activesupport/lib/active_support/core_ext/hash/indifferent_access.rb:33:in `with_indifferent_access'' from /Library/WebServer/sidewayspony/public/../config/..//vendor/actionpack/lib/action_controller/request.rb:7:in `parameters'' from /Library/WebServer/sidewayspony/public/../config/..//vendor/actionpack/lib/action_controller/base.rb:659:in `assign_shortcuts'...
2011 Jan 10
0
Can't use ActionDispatch::Request in Rails middleware because path_parameters get lost
...eters.rb # Returns both GET and POST \parameters in a single hash. def parameters @env["action_dispatch.request.parameters"] ||= begin params = request_parameters.merge(query_parameters) params.merge!(path_parameters) encode_params(params).with_indifferent_access end end alias :params :parameters def path_parameters=(parameters) #:nodoc: @symbolized_path_params = nil @env.delete("action_dispatch.request.parameters") @env["action_dispatch.request.path_parameters"] = parameters end...
2007 Jul 06
3
assert_equal - problems returning value from controller
Hi, I have the following assert_equal that is returning false. @q seems to be returning niil, but is set in the controller, how can I get hold of this value in my tests? assert_equal ''derby'', @q Thanks Mark -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups
2006 Apr 13
5
Changing class data in environmrnt.rb
Greetings, I have a class that should allow you define some default values. It seems to make the most sense to do this environment.rb since its the default app configuration. It currently looks like this: Settings::DEFAULT_VALUES.merge!({ :setting_one => ''foo'', :settings_two => ''bar'' }) The problem is in development mode, the values are only
2007 Jan 31
7
GET request works via curl, crashes from Java
...rt-1.4.0/lib/active_support/dependencies.rb:496:in `require'' script/server:3 Here''s the code in request.rb: # Returns both GET and POST parameters in a single hash. def parameters @parameters ||= request_parameters.update(query_parameters).update(path_parameters).with_indifferent_access end The Java program is expecting an xml file and obviously isn''t getting what it is supposed to: org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Content is not allowed in prolog. I thought it was unlikely to be helpful but I turned $mongrel_debug_client: kill -U...
2007 Oct 17
9
@session['user'] vs session[:user]
This might seem really simple to some but just wanted to ask: what is the difference between @session[''user''] and session[:user] ? and how would you use each? And another question, I have the following code: def get_customer if @session[''customer''] @c = Customer.find(@session[''customer'']) end end private def
2009 Jul 20
9
Upgrade server to run on Rails 2.3.2/F11
Note that one of the 8 patches (#6) will be sent separately in reply to this email, as some of the replaced lines are too long, so git won't let me send the email. However, there is nothing wrong with that patch, and it should be applied in the sequence listed below. Note also that I assume this will be tested on a clean f11 install, rather than an upgrade of an existing ovirt server