similar to: nested rest URL => passing param from select

Displaying 20 results from an estimated 400 matches similar to: "nested rest URL => passing param from select"

2013 Nov 08
2
Export CSV
Hi friends, i am using csv export on my application. in my view file code is <%- headers = ["Transaction ID", "Activity ID", "Product Name","Customer Name", "Ticket code"] -%> <%= CSV.generate_line(headers).strip %> <%if !@trans.nil? && @trans.length > 0 %> <% @trans.each do |tran|%> <% if
2005 Nov 19
3
Form values not included in submit when ajax generated.
Hi. I have a form with two select lists, named ''project'' and ''activity''. The content of the ''activity'' list is changed when the selected item in project changes, using ''observe_field'' where project is observed, and a div enclosing ''activity'' is updated. This works as expected. The problem is that when
2007 May 22
3
can I use acts_as_list with a has_many :through association
I''d like to be able to use a has_many :through association and treat the associations as a list but I''m getting this error when I try an use an acts_as_list method: NoMethodError: undefined method `move_to_bottom'' I''m using edge rails r6786. Here are my domain rules: Activities are things students can do. Units consists of a sequenced list of
2012 May 10
6
Is it suitable using STI?
I have problems on a simple design problem. I have many companies. Each company have one or more commercial activity. Activities types are: ecommerce, local unit, television, automatic vending machines, and so on. Company may have one or more ecommerce activity or one or more local unit activity, one ormore vending machines, etc. How can I model this scenario? Company has_many ecommerce has_many
2006 Jul 06
1
Multiple Keys in a Database Table
I''ve read previous posts to the list stating how Rails lacks multiple key support for database tables, and how support is not planned. I''m OK with that, but I''m wondering if there''s an elegant way to do what I need, for my in-house customer relationship management tool: I have an ACTIVITIES table. That table is a collection of individual, unique activities
2008 Jan 10
4
Mocking and stubbing Rails'' association extensions
I''m having a lot of trouble stubbing out an association extension for some view tests. Example rails code modeling a music album: class Album < ActiveRecord::Base has_many :songs do def streamable find(:all, :conditions => ''streamable = 1'') end end end So for a given Album instance (say @album), I need to be able to stub both
2007 Jun 23
2
type image submit tags on IE dropping the params
I have noticed that on IE, the @params[:commit] does not come through on image submit tags, but it does when the image is removed. this fails: <%= submit_tag( "Schedule", {:type => "image", :src=>"/images/buttons/schedulecard.gif", :alt=>"Schedule Card", :class=>"button"})%> but this works: <%= submit_tag(
2006 Jun 07
2
How to send post data with link_to_remote?
Hi, I''m trying to send a post body with my link_to_remote call. Prototype supports the ''postBody'' option, but I can''t seem to get link_to_remote to set that. Here''s what I''m trying: link_to_remote ''move up'', :url => { :controller => ''upload'', :action => ''position_ajax'', :id
2007 Jun 23
7
rake db:migrate strange behaviour "wrong number of arguments (1 for 0)"
Hi everybody, May be somebody has a clue, why I get these errors below, while trying to migrate. Any help is very appreciated! Greetinx Rafael I was trying to experiment a litte bit with redMine (www.redmine.org). But I can only install it locally. On a system with already a mongrel_cluster running, I get strange errors, already while trying to start the migration rake db:migrate
2006 Mar 28
74
Is this an elaborate hoax/troll?
I sure hope so: http://duckdown.blogspot.com/2006/03/additional-thoughts-on-why-ruby-isnt.html Seems like it''s getting genuine rebuttals, though. It''s actually kind of amusing.
2011 Jun 03
1
C-Side: Applying a function (given as param) to data (given as param)
Hello, I'm implementing a package (C-extension), where one function gets data and a function that needs to be applied to the data. I want to apply the function to (parts of) the data on the C-side. 1) how do I apply a function (given via SEXP) to data 2) how do I select parts of the data (also provided via SEXP)? Comment on 2: I want to implement a moving/rolling/running apply on the data,
2011 Jun 03
0
C-side: Applying a function (given as param) to data (given as param)
Hello, I'm implementing a package (C-extension), where one function gets data and a function that needs to be applied to the data. I want to apply the function to (parts of) the data on the C-side. 1) how do I apply a function (given via SEXP) to data 2) how do I select parts of the data? Comment on 2: I want to implement a moving/rolling/running apply on the data, so I want to select a
2009 Aug 14
4
Redirecting mail gives 'mail forwarding loop' to the sender - calling for sieve help
Greetings, i am testing: - dovecot-1.2-sieve-0.1.11 - dovecot 1.2.3 - dovecot-1.2-managesieve-0.11.8 (with patch) I am trying to use sieve_after to execute some redirection of mails. I have put in the after script: require "include"; require "fileinto"; if header :contains ["To","Cc"] "userA at acasalud.com.ar" { keep; redirect
2006 Aug 01
0
how do i pass/save a selected param ID to different views?
hi, i have a link called ''family doctor''. when the user presses the ''family doctor'' link, it goes through town''s DB and searches in which towns where there is a family doctor. after this is done, the view displays all the towns with the total number of ''family doctors'' in each town. next i want the user to select the town that
2006 Aug 01
2
How can I save multiple param(ids) ?
hello, I am building a search page that are links. How can i save what the user pressed pages before? -- Posted via http://www.ruby-forum.com/.
2006 May 10
0
using Rails 1.1 param parsers
Hello, I want to use the new param parsers in Rails 1.1 to process POST''ed xml form data (at the moment I manually parse request.raw_post using REXML). As per Scott Raymond: *"Pluggable parameter parsers* make writable REST web services a cinch. By default, posts submitted with the application/xml content type is handled by creating a XmlSimple hash with the same name as the root
2006 Jul 12
0
[PATCH] IMQ for linux-2.6.17.4 with behavior param
Hi, I see some inertion on www.linuximq.net, while kernels are at full speed, so here is my testing proposition for IMQ with: - some minor bugs removed in imq.c (like improper err handling while registering queue handler), - changes in ipt_IMQ.c and ip6t_IMQ.c to work with linux-2.6.17.4 (iptables-1.3.5), - added functionality to change behavior with module parameter (without recompiling).
2004 Jun 23
0
HTB vs CBQ - is meaning of prio param the same?
Hi, I am looking working (!) qdisc that would guarantee preferential treatment to priority (ex voice traffic). It is supposed to work as LLQ (Cisco) which means it is PQ but with bandwidth limited for EF PHB traffic. I did lots of tests with CBQ and prio set to 1 for EF PHB and prio 2 for best effort. Although delay does not look like being guaranteed at all for priority traffic. Eventually I
2006 Feb 25
2
How to access param entered through text_field
I''m rendering partial a form comprising several text_field helpers to maintain my User model. For example, the email field is: <p><label for="user_email">Email</label><br/> <%= text_field ''user'', ''email'', :size => ''40'', :maxsize => ''256'' %></p> In my controller,
2006 Jan 25
1
If Param not set...
Hello all, I''m developing an application which allows users to browse items for sale... Using the url localhost:3000/browse/by_type/2 (2 is the id of the category they are in) Displays the information I want, however localhost:3000/browse/by_type/ will display an error page (becuase the id param is not set) in my by_type.rhtml view, how to i check to see if the param is set? and