search for: 00s0lw7paslatqe2ktcn

Displaying 11 results from an estimated 11 matches for "00s0lw7paslatqe2ktcn".

2010 Jun 23
2
CSV Upload Issue
CSV: http://pastie.org/1015772 Controller: http://pastie.org/1015773 Why is it that it''s only saving the record for "EFG5"? I''m obviously missing something. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to
2010 Dec 27
5
Is apostrophe (') something special in a regex if at end?
(Ruby 1.9.2) I have a simple validation regex which I need to pass the following values: "Billy-Bob" and "O''Kelley" (as test cases). Originally I was not allowing apostrophe but it became apparent I had to allow it. The initial regex was: /^[a-zA-Z -]*$/ Now, when I added the apostrophe like this: /^[a-zA-Z'' -'']*$/ Then for some reason
2010 Dec 20
1
Writing to a CSV with Faster::CSV
Is there a way to write a csv file using a hash instead of an array? Something like this: header_keys = :first_name, :last_name, :email FasterCSV.open("path/to/file.csv", "w") do |csv| User.all.do |user| csv << user end end Thanks... -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To
2011 Sep 30
1
ubygems.rb file - is error?
Hi, I just installed Rails, and I was wondering what is this file? /lib/ubygems.rb ? Here is a copy of it: https://github.com/rubygems/rubygems/blob/master/lib/ubygems.rb Is this a bug/type (ubygems rather than what it should be, ubygems) or is it supposed to be that way? If so, what does it do, could someone explain how it works? (sorry if it''s a dumb question I''m new at
2011 Oct 04
9
Postgresql adapter not working
Hello everyone. I''m starting with Rails going through the obvious "Getting Started with Rails" guide: http://guides.rubyonrails.org/getting_started.html Everything goes smoothly until the rake db:create command, which returns this strange error message referring to a gem that apparently doesn''t exist: Please install the postgresql adapter: `gem install activerecord-
2010 Dec 01
6
Mongrel, .htaccess, cpanel, rewrite, Mongrel::HttpParserError
I just installed my RoR application on my ISP''s server. This is a Cpanel environment and it creates a .htaccess file: RewriteEngine on RewriteCond %{HTTP_HOST} ^xyz.com$ [OR] RewriteCond %{HTTP_HOST} ^www.xyz.com$ RewriteRule ^(.*)$ "http\:\/\/127\.0\.0\.1\:12001\/$1" [P,L] in a public_html directory. (I changed my domain name in the text above to xyz because we are
2010 Jul 02
22
MySQL not Connected ...... *pull hair*
I''m trying to run " rake db:migrate " and im getting an error back: ------------------------------------------------------------------------ C:\wamp\www\demoproject>rake db:migrate (in C:/wamp/www/demoproject) rake aborted! Mysql::Error: query: not connected: CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB (See full trace by running task
2010 Aug 13
11
Link to remote and the equivalent in Rails 3
Hi WOW! Is Rails 3 another interesting learning curve. Just when I think I have a general working knowledge of Rails 2 ... things change. I''m trying to replicate the following in Rails 3: <%= link_to_remote image_tag("creditcard.png", :border => 0), :url => {:action => :make_payment, :type => "Credit", :id => @appt.id },
2010 Nov 22
6
Should be obvious, but how do I even know what versions of ruby are available for rvm to use with rvm install?
I''m getting back to learning rails and at one point I used rvm to install some rubies. Now I''m playing dumb and want to install the latest ruby version - latest beta. How in the world do I found out the name of it? I''d think it would be named somewhere here http://www.ruby-lang.org/en/downloads/ and then I could just do rvm install ruby-XYZ. I don''t get where I
2011 Jun 17
7
Encoding
What''s a good solution for fixing character encoding problems for compatibility between ascii and utf-8? The database is postgres and is encoded in utf-8. Once in awhile there will be a compatibility error from strings from a webform. Is there a command to fix this besides using a_string.force_encoding(''utf-8'')? Even this doesn''t seem to always work either.
2011 Oct 26
6
Add an index to a form
Hello, I''m having some trouble with forms, my app allows to enter data by using a multi-step form that has 7 steps. There are 3 steps that may let the user to add 1 form, for example there''s a step called "children" and that children has the following fields: * name * age * gender but one father may have more than 1 child and I''m adding another form with