search for: my_param

Displaying 7 results from an estimated 7 matches for "my_param".

2006 Aug 10
1
Passing parameters defined in a function or something
Hi, I have method I want to call ... it can receive * number of parameters. I also have 3 parms that I want to pass often, so I have defined them in a separate function: def my_params { :parm1 => 1, :parm2 => 2, :parm3 => 3 } end And I want to call my method like this: mymethod :parm4 => 4, my_params Now - this doesn''t work - as my_params is a hash of params, which isn''t the same as calling mymethod :parm4, :parm1 => 1, :parm2 => 2, :...
2007 Dec 08
3
Uploading photos using facebook & attachment_fu
...but I''m kind of stumped. Here''s what I''m doing now: <% facebook_form_for(:my_object, :url => { :action => ''upload_photo'', :id => params[:id] }, :html => { :multipart => true }) do |f| -%> <%= radio_button_tag ''my_object[my_param]'', "value" %> <%= file_field_tag "photo[uploaded_data]" %> <% end %> Now that I''ve typed this out I''m realizing that the facebook_form_for probably isn''t doing anything for me since i''m not using the f. helpers, but...
2012 May 14
2
defaults for virtual defined resources from hiera.
Hi, This follows on a bit from the previous thread ''trouble with hiera and puppet defines'' [1] Up to now I''ve had a large file of virtual resources and then enabled them on demand on various services. The very standard. @metric{''1234: one => 1 two => [1,2] } @metric{''abcd'': one => a, two => [b,c] } and
2006 Aug 04
3
Pass a variable via Link To
Can anyone tell me how to pass a value from a link_to in a view to a controler? The value is just a piece of text for the time being. <%= link_to ''About Us'', :action => ''about'', :params => ''string'' %> ??? -- Posted via http://www.ruby-forum.com/.
2008 May 28
3
Newbie: Searcing database via user form input?
Does anyone have a tutorial on adding new parameters to the paramaters list and then creating find conditions around them? I''m wondering how I can get my index page to list only the items where some of the the databases fields match user form input. index.html.erb would be calling itself with a new parameter :searchdata So far the index.html.erb has... <% form_tag({ :action =>
2008 Jun 12
11
auto_complete with multiple params
I''m using the auto_complete plugin, and it works great, my problem is i need to pass multiple parameters to the controller other that what is typed in the text field. <%= text_field_with_auto_complete :search, :contains, :size => 15, :frequency => 0.1, :skip_style => true -%> This is what i have as of now, but i also need to pass ":language => @default"
2003 Jun 13
8
Oracle SQL*Net through Shorewall
Hello all, I am a newbie to Linux firewalls, and am trying to setup shorewall to allow connections from an Oracle client to an Oracle Server. The client tries to connect to the server via port 1521 (it works fine) and once the first connection has been successful, the server sends a redirect to the client to a random high port. So, when the client tries to connect again to the sevrer on that port