similar to: Weird issue with params from form for one user

Displaying 20 results from an estimated 50000 matches similar to: "Weird issue with params from form for one user"

2006 Jun 30
7
javascript woes with radio button groups
Ok! So I have this survey project I''m working on where there are a list of questions but only one shows up at a time. That part''s easy. And, it is fully functional as we speak (and I think even ''live'') however..... My boss wants to be able to have the survey go to the next question when a user selects an answer. This part is easy.. except..... IE
2011 Jul 11
2
Pre-populating association
Hello, I think this is an easy one for the average Rails developer but I''m a bit stuck. I''m creating a simple voting app: any user can create a survey, with any number of questions, and other users can then vote by creating a ballot for that survey. Here''s the modeling: class Survey < ActiveRecord::Base has_many :questions has_many :eligibilities has_many
2006 Aug 01
3
Radio buttons and AJAX
Hi, Here is what I would like: 2 radio buttons: "yes" and "no" There will be 2 containers: <div id="yes" style="display: none;">Yes stuff</div> <div id="no" style="display: none;">No stuff</div> What I want is whenever the "yes" radio button is selected, on the "yes" div should be made
2007 Oct 11
3
radio_button_tag
Hello I have a view which have 2 radio buttons : ... <td style="width:5%">Actuel</td> <td style="width:10%"><%= radio_button_tag(:actuel, value = "1", checked = false, options = {}) %> <td style="width:5%">Last</td> <td style="width:10%"><%= radio_button_tag(:last, value = "1", checked =
2007 Sep 22
1
Rails newbie: passing a value to hidden form field, then getting it
Warning: I am as green as #00FF00 with rails :-) I have an rhtml view that shows a survey: /views/survey/show.rhtml. I have a Survey model, helper and controller. I''m using the acts_as_commentable plugin to collect comments, and trying to save user comments from users who have taken a survey (don''t ask -- it''s just a test). To save the comment, I need the id of the
2006 Aug 10
7
Radio Button events
Hi, I have observers for a group of radio buttons, an observe_field for each radio button (I think its not possible to have one observe_field for a group of radio buttons). Now, the problem is that when I click on one radio button, all the observers get trigerred, so the method which the observe_field calls gets the wrong result. I just want that method to get the radio button that is
2013 Jan 04
0
Add data in between Simple Form association members
Hey there, I am trying to use Simple Form''s association to list a bunch of radio buttons like so: <%= simple_form_for(@applicant) do |f| %> <%= f.association :track, :as => :radio_buttons %> <% end %> Assuming each track has many courses, how can I take every track from that association and loop over its courses to display them below the radio
2006 Jun 06
1
Getting value of form using Ajax (and problems with Safari)
I have got two forms, the first is a textarea plus a link that activates some javascript to change the form, the second activates some javascript on the onchange event which changes it into a textarea form. This works in Firefox, but not in Safari. Also, I need the value which is selected. I''ve found an example that gives the parameter to the javascript, like this: <input
2006 Jun 08
0
Bad design or better way?
I am at a loss as to whether this page of my site is poorly designed or if there is a better way to achieve what I am looking for. My concern lays in one piece of controller code. I really don''t like the way I have to use params[:answers].values, nor do I like that for the creation of each response it has to find the answer associated with it. Any help would be greatly appreciated.
2006 Mar 17
5
Radio Button Validation
I''m writing a quiz application and I need to validate the radio button reponses. I do not have the questions in a database, I just have forms which contain "question1" and then I strip out the "question" portion and just insert the number as the question''s id. So now I''m faced with the dilemma of making sure the radio buttons are pressed. Radio
2006 Jan 11
1
Keep ketting weird error, NoMethodError in Admin#create_survey Keep getting ''undefined method `assign_variables_from_controller'' for #<Survey:0xb7462244>''
Hi list, I keep getting the following error: NoMethodError in Admin#create_survey undefined method `assign_variables_from_controller'' for #<Survey:0xb7462244> contents of Admin#create_survey is: @template = Survey.find(params[''survey''][''id'']) render :layout => false I have no idea where this comes from, bug in Rails? -- Michiel Sikkes
2007 Feb 27
2
Dynamically add radio buttons to forms?
Good afternoon all I''m trying to implement a form that dynamically inserts radio buttons into a form. The user selects options from a drop-down menu. I use observe_field to watch for a change and call back to render the appropriate partial tha contains the radio options. All works nicely but I''m tripped up on one thing: When rendering a form using form_for how do I link those
2013 Mar 02
3
Help Radio button
Hi i''m fairly new to ruby on rails and i''m creating a form using simple_form and in one bit i have radio buttons and say i have 3 buttons a,b,c so i want it to be if a is pressed then certain text fields show, and if b is pressed a different set of text fields show and similarly for c. Can anyone help me on this? -- You received this message because you are subscribed to
2006 Aug 06
2
assert_difference gives undefined method error in unit tests
Hi there Am hitting undefined method errors for ''assert_difference'' in my unit tests under Rails 1.1.4 What could I be missing? Richard Sandilands
2005 Aug 18
3
help with unknown function
Hello I am working on radio tracking data, with a short programme someone gave me and ... which should, supposedly, work ... In this programme, there is the function : getareahr(kern, levels = 95). But i cannot find any 'getareahr' in R ... could anyone help me? thanks! Agn??s
2006 Mar 24
1
Radio Button Tag and hash @Params.
Hi, I''ve a little problem using the Radio Button Tag. I use the " @prove=MODEL.column_names() " to keep attribute names of a table. After i used this code to select a attribute subsets of them : <% i=''0''%> <% for @obj in @prove %> <% @key='':key''+i%> <%= radio_button_tag (@key,@obj) %> <%
2012 Feb 29
0
controller code for access to params in radio button column
I am new to Rails, and I thought I understood params, but I''m a little fuzzy on what goes into the controller to access a third value for a radio button. In my migration I defined the column as a string with a default value of nil. The column itself is actually a question(no question mark appears in the column though)with three choices in the radio button form: yes, no, and undecided.
2005 Sep 20
1
radio buttons and event obvsering
Hi, I made a little utility class that turns on a particular div when a radio button is clicked - a RadioButtonDivToggler. As the name hopefully suggests, when a radio button from the same group is clicked, a different div is made visible and the others are hidden. In essence, it toggles on (makes visible) the div associated with the radio button from a group that you clicked. However,
2010 Nov 29
1
cross tabulate variables by subject id
Dear list, I have data like this: dat1 <- data.frame(subject=rep(1:10,2), cond1=rep(c("A","B"),each=5), cond2=rep(c("C","D"),each=10), choice=sample(0:1,10,replace=TRUE)) I would like to compare subjects' "choice" for (cond1=="A" & cond2=="C") vs
2014 Oct 15
2
Advice on package design for handling of dots in a formula
I am working on a new package, one in which the user needs to specify the role that different variables play in the analysis. Where I'm stumped is the best way to have users specify those roles. Approach #1: Separate formula for each special component First I thought to have users specify each formula separately, like: new.function(formula=y~X1+X2+X3, weights=~w,