similar to: form inputs resetting on sumbit

Displaying 20 results from an estimated 300 matches similar to: "form inputs resetting on sumbit"

2006 Jul 08
9
How to handle dynamically columned tables in rails
I want to build an application that lets me (the end user accessing a web page) design a simple list with columns and add records. E.g., if the end user says I want a table that has a list of songs, he can create a list (title, date, artist, label) and then make another list of, e.g., books on his bookshelf with the necessary columns (title, author, pub_date, shelf). The end user
2006 Mar 14
5
Dreamhost and fcgi....help!
I''ve got my app running under cgi, but I keep getting pwned by fcgi. - app is installed at www.mydomain.com - web root is www.mydomain.com/public (this works w/ regular cgi) - /public has correct permissions - .htaccess: rewrite rule changed to use .fcgi - shebang on dispatch.fcgi and dispatch.rb is set to #!/usr/bin/ruby1.8 (also tried just ruby) -environment.rb : running in prod Any
2006 Mar 23
3
RJS plugin and rails 1.1
Currently I''m using the RJS plugin for my app. After I upgrade to the soon-to-be-released 1.1 (which has RJS support built in), will anything break after removing the plugin? Has anyone messed with the release candidate and RJS yet? -- Posted via http://www.ruby-forum.com/.
2006 Mar 05
5
special characters?
I''m not sure if this is something in Rails or MySQL, but characters like ? are showing up funky in my app. I see ''?'' in the DB using a query browser, but in the app it shows up as ''A1/4.'' Do I need to use another charset or something? -- Posted via http://www.ruby-forum.com/.
2006 Jul 04
1
Has_many :through with checkboxes?
Just when I started getting the hang of has_and_belongs_to_many relationships, I realize that I should probably convert several of my app''s joins to has_many :through type relationships. One example, pairing users with categories via subscriptions, where each user can be the "owner" of a category, has given me particular trouble when I try to update a user''s
2006 Jan 08
2
sorting issue
I''ve got the following setup: category (hm) <-> (bt) activity An activity has an amount, date, location, note, and category. I''m sorting my activities table by category_id (foreign key in activity), but how do I sort it by category_name instead? Basically I just need category_name in the result set. Here''s what I have now: @all = Activity.find(:all, :order
2006 Jan 08
2
sorting tables by columns
What I''m trying to do is have clickable column headers that will sort the table by that column. What I have below works, except there is only one variable storing the sort direction for all the columns, whereas I need a separate one for each column name. list view: <th><%= link_to ''Category'', :action => ''list'', :order =>
2005 Dec 19
2
Difficulty using correct moldel for the data in DB
Hi everyone, I''ve tried posting the same question to the list last Friday but somehow did not see it being posted.. I''ve just started with Rails and Ruby. I just started to play one of those RPG and to get my feet wet I''m writing an app to keep track of item fusions. So the scoop is that item can be fused with another items to create a higher level item. The higher
2010 Jul 26
4
Changing the model_path.
Hi, I''m new to RoR, but currently need to make some changes to my site to implement permalinks. Whenever I do a link, I use: category_path(category) and then the to_param permalinks it. The previous piece of code would link you to / categories/CategoryPermalink; the trouble is I don''t want it to be / categories, I just want it to be /PERMALINK. Then I''m getting into
2004 May 18
2
ADIT 600 Manual
I am trying to find a manual for the Carrier Access Adit 600. Does anyone know where I might be able to find one? Thanks -Jon -- Jon J. Brandon jon@monsoonretail.com http://www.monsoonretail.com
2006 Mar 14
2
ActionMailer not working correctly
Anyone know why this wouldn''t work? I''m using acts_as_authenticated for my login, and the mail is not getting sent. I''m using dreamhost. Here''s my settings: ActionMailer::Base.delivery_method = :smtp ActionMailer::Base.server_settings = { :address => "mail.mydomain.com", :port => 25, :domain => ''mydomain.com'',
2006 Feb 25
1
extending a class
I''m trying to add this to my project: class String def escape_quotes self.gsub(/["'']/) { |m| "\\#{m}" } end end I tried putting it in application_helper.rb, but it''s not getting found. Where does it need to go? Thanks, Chris -- Posted via http://www.ruby-forum.com/.
2008 Mar 12
2
Whence "post" in a description?
I''m having the exact problem described in this earlier post: http://www.nabble.com/Odd-response.body-behavior-to12837556.html#a12837556 That is, after a post, response.body is just the controller/view string ("user/login" in my case). Failing to find any answer on the web, I''m trying to trace execution, but hitting a bit of a snag. I''m tracing the ancestry
2006 Feb 22
15
Fixtures and Relationships
In my daily development, I migrate back and forth between versions, and often do: rake load_fixtures... ... in order to populate my development database with fun data. Now, with any HABTM relationship, there are failures, as there is no way to say "which" fixtures to load first. Within an actual functional or unit test case, you could simply load them in the proper order, but
2009 Jul 11
2
Date conversions
Hi all, I'm having a little bit of trouble with some date conversions and am hoping someone can help me out. Thanks in advance. OK, I have two sources of data that provide date info in a csv file differently. I've attached a small zipped file with two text files that illustrate both. (Is it ok to send attachments to this list? Not sure. It's very small.) I need to be able to
2006 Nov 04
2
Possible to use attr_reader/writer in model?
I have some properties that I want setable externally, but readable only internally. I''ve played around with attr_writer (and attr_reader separately) but can''t figure out how to get either to work. I can do what I want using attr_accessor, or just straight out defining the prop setter method. Anybody know how to use attr_writer or attr_reader with a model? You da man, Joe
2012 Nov 10
4
help on date dataset
Hi everybody, I am beginer in R and I need your precious help. I want to create a small function in R as in sas to retrieve date. I have a file with data that import in R. DATE PAYS nb_pays.ILI. 1 24/04/2009 usa 0 2 24/04/2009 usa 0 3 24/04/2009 Mexique 0 4 24/04/2009
2013 Feb 14
3
Problems plotting and regression w.r.t. date data type on x axis
Hello, probably a newbie question, but i didnt find any information on plotting/regressing w.r.t. a date data type. My trials were unfruitful. Can anyone help ? Thanks in advance! Here is my interaction with R: > tabelle date number date2 1 2009-01-1 1673 2009-01-01 2 2009-12-1 2111 2009-12-01 3 2010-7-1 2487 2010-07-01 4 2013-2-1 4301 2013-02-01 > regression.punkte<-lm(tabelle$number
2009 Dec 07
2
Filtering a zoo object based on index of another object
Hello everybody, I have two datasets, observed and predicted. Since my observed dataset is not in regular intervals, I need to filter my predicted dataset based on the measurement date of my observed data. Here, is an example similar to what I have library(chron);library(zoo) DATE<- seq(as.Date("2009-01-01"), as.Date("2009-05-01"), by = 1) mydat<- rnorm(length(DATE),
2011 Dec 07
2
plotting and coloring longitudinal data with three time points (ggplot2)
Dear list, I have been struggling with this for some time now, and for the last hour I have been struggling to make a working example for the list. I hope someone out there have some experience with plotting longitudinal data that they will share. My data is some patient data with three different time stamps. First the patients are identified at different times (first time stamp). Second, they