similar to: upadte database

Displaying 20 results from an estimated 70000 matches similar to: "upadte database"

2007 Apr 01
7
database.yml: encoding: utf8 does not work
Hi all According to the Agile 2nd Ed book I added the line encoding: utf8 to my database.yml connections. But now when running rake I get plenty of errors: Character set ''utf-8'' is not a compiled character set and is not specified in the ''/usr/local/mysql/share/mysql/charsets/Index'' file What''s wrong here? I checked this Index file, but it seems to
2009 Feb 15
12
Using MacPorts To Install Ruby 1.9.1 and Rails 2.3.0 RC1
Using MacPorts To Install Ruby 1.9.1 and Rails 2.3.0 RC1 WARNING: If you want to live on the edge, please continue with the steps below. Also, please be aware that all gems are not fully compatible with Ruby 1.9.1 stable release (i.e. 1.9.1p0). Furthermore, this installation requires you to remove ALL Ruby related gems and ports because we are performing a clean install.
2009 Mar 05
3
Connection Pooling on Rails 2.2.2 (Windows Vista)
Hi, I''m trying to setup rails 2.2.2 pool connections to MySQL by specifying the pool setting with 5 in database.yml but no hope.. It doesn''t work. My rails is running on webrick in the production mode and the webrick is launched by RadRails. Even though I send multiple requests to my app on rails at the same time, it seemed only one connection is shared ( pooled ). I also
2007 Aug 02
3
Code works in console but fails test?
So I have message model and each user has many messages. When I run user.messages in the console it returns correctly, however in the test it returns and empty collection? Any thoughts. All the sql is being generate correctly, I checked the log. Here''s a pastie with the code in question. http://pastie.caboo.se/84337 --~--~---------~--~----~------------~-------~--~----~ You received
2007 Aug 10
16
[OT] Parallels or VMWare?
I''m looking to get parallels or vmware for my imac. Wondering what ppls opinions are. Besides web broswers I need to run some windows only stuff, and wondering about running MS Office Opinions? Thanx Daniel --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to
2008 Sep 16
8
rspec, Rails 2.1.0, rubygems, Mac OS X Leopard - rubygems does not recognize latest version
I''m trying to run some specs on my Mac OS/Leopard machine (10.5.5) but rubygems won''t allow it: $ spec spec/models/my_spec.rb Rails requires RubyGems >= 0.9.4 (you have 0.9.3). Please `gem update --system` and try again. ...but I already have the latest & greatest installed: $ gem search --local rubygem *** LOCAL GEMS *** rubygems-update (1.2.0, 0.9.5) Tue Sep 16
2007 Sep 17
8
DISTINCT?
This should be easy, but I''m stumped... class X < ActiveRecord::Base belongs_to :y end class Y < ActiveRecord::Base has_many :x end The y table has a column names. The x table has a column value. I want the list of values in x for the name "Location" in y. Yes, there are many repetitions. I can probably hack together an SQL statement to do this without too much
2007 May 24
3
Help with Create and Update with options_for_select in a select_tag
I have a select_tag in my view that uses options_for_select with multiple = true. I am having trouble figuring out the Rails way to create and update that field. Please help. Models: ------------- Service has_many AccessControl AccessControl belongs_to Service application.rb ------------------------- $types = Array["Athens", "htpasswd", "IP", "None",
2009 Apr 08
7
How to use Net::SSH
Hi all, I am having following code in ruby require ''net/ssh'' require ''net/sftp'' begin Net::SSH.start (''132.147.161.159'',:password=>''k'',:port=>1234,:username=>''k'') do |ssh| ssh.sftp.connect do |sftp| Dir.foreach(''.'') do |file| puts file end
2009 Mar 31
2
Safari 4 invalid auth token
Getting an odd error in Safari 4: Here''s the auth token that''s output to my javascript: 4HB8yAW4gU2xEavWOc+kiMoj4XIyCBUK/t704aOQ+co= Here''s what''s listed in the parameters: "authenticity_token"=>"4HB8yAW4gU2xEavWOc kiMoj4XIyCBUK/t704aOQ co=" notice: the +''s are being replaced by spaces. This a specific safari issue? I
2006 Nov 16
2
dynamically adding static (class) methods to a class
Hello again, I guess this is more of a Ruby question, but here goes anyways... I want to intercept all calls to non existent class methods and then call an existing class method with the non existent name. In code... class MyModel < ActiveRecord::Base def MyModel.method_missing(symbol, *args) MyModel.func(symbol.id2name) end def MyModel.func(func_called) puts "You
2009 Mar 13
7
rails, passenger, and images
Just switched over to passenger for development and production for my rails app. Liking it so far. My problem is my image_links, stylesheet_tag_links, and javascript_tag_links are all adding "http://localhost:3000 to the generated links. I got around the stylesheet and js links by not using the helpers. I can access my all of my assets directly via http://dating.local/stylesheets/all.css,
2009 Mar 21
5
- 2.3.2 uninitialized constant ApplicationController
Hi, I just migrated from rails 2.2.2 to 2.3.2 The rails app was running fine until i migrated I checked for the application.rb in the controller folder and its there Any suggestions, why this is happening??? Regards, Vimal Das --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk"
2009 Mar 21
15
mysql encoding with rails 2.3.2 and ruby 1.9.1
when I run console with ruby 1.9.1 and rails 2.3.2, and trying to do something like User.first.name.encoding I''m getting #<Encoding:ASCII-8BIT>, though I''ve set "encoding: utf8" in database.yml any suggestions? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2010 Feb 20
23
Rails 3 possible bug in Routing
Hi, I just ran into this ActionController::RoutingError and just wanted to check if someone can confirm this as a bug in the Rails 3 beta gem. config/routes.rb contains: get ''login'' => ''session#new'' post ''login'' => ''session#create'', :as => :login GET /login works fine: Started GET
2009 Feb 20
6
rails 2.2.2 does not work with ruby 1.9.1
Hi everyone! I''ve installed new Ruby 1.9.1 from sources (http://www.ruby-lang.org/en/), then "gem install rails", everything was ok during installation, all tests ("make test") were ok too. After all, i wanted to create my new RoR project, but I could not start it. Plz help me Here is my terminal: [renat@localhost rails]$ rails mysite create create
2009 Apr 16
3
deprec problem
I install deprec with gem install deprec but when i write deprec --apply-to . this message display to me " ''deprec'' is not recognized as an internal or external command, operable program or batch file. " what can i do? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on
2007 Apr 01
12
How to List Records in Descending Order?
I am brand-new to RoR and have only followed and replicated the few tutorials that are out there. I have searched and searched, but cannot find an answer to this simple question: How can you list records in descending order? I have the cookbook example loaded, but can''t seem to list the recipes in reverse order (by the primary key - id). Thanks ahead of time for any and all help. --
2010 Jan 19
15
git clone locally
Hi, I follow the instructions below to set up a git repository with gitosis on my home ubuntu server. I can connect to the repository remotely perfectly and set up a new repository named My_Project. I successfully push the content of My_Project to this repository using the remote computer with an SSH key. Now I want to clone My_Project locally onto another directory within the unbuntu server.
2008 Sep 22
3
syntax error in RJS
I''m new to Ruby on Rails and came across a problem I could not solve alone. I''ve a pretty simple RJS file that looks like the following: 3.times do page.insert_html :bottom, ''messages'', ''test'' end page.call ''updateMessageWindow'' However this snippet gives a syntax error: ActionView::TemplateError (compile error D:/Eigene