similar to: From "schema.rb" file to MySQL

Displaying 20 results from an estimated 20000 matches similar to: "From "schema.rb" file to MySQL"

2010 Jun 10
9
Rails3 beta4 + Ruby 1.9
When I try rails console using Rails3 beta4 and Ruby 1.9.1-p378 I cannot save a record: > rails console Loading development environment (Rails 3.0.0.beta4) ruby-1.9.1-p378 > g = Game.new => #<Game id: nil, player_id: nil, versus_id: nil, finished: nil, created_at: nil, updated_at: nil> ruby-1.9.1-p378 > g.save NameError: undefined method `<=>'' for class
2009 Sep 25
8
Cheapest Rails Hosting where they give you full access to Apache (to load modules etc)???
any pointers / suggestions re cheapest Rails hosting where they give you full access to Apache (to load modules etc)??? Can be a shared platform, however not sure if there is a shared platform type hosting service where they do give you such access?
2009 Sep 16
12
Connecting to Oracle (Solaris Sparc 10)
My company''s System-admin installed Ruby and Gems (using Sun Coolstack package) and I have sudo access to ruby, gem etc. Now I need to get my app to talk to oracle db (through network). From what I understand, it requires three steps: Step 1: Install oracle instant client ( I installed it in my ~/oracle/ instantclient_11_1) Step2: Install OCI8 libraries (this is where I am stuck). Here is
2009 Sep 16
5
piece of code that runs only once
hi, an strange error is happening here in User model i have the following method: def falta_votar Category.find(:all) - votes.collect {|v| v.category} end and in the default.html.erb layout i have: <%= current_user.falta_votar.size %> but it only works once, when i try to access another page i get an error message saying that the falta_votar method is nil, then i have to restart
2010 Sep 27
3
Rails3 app deploy : how to ?
Hello, I know many people are asking this kind of question. I searched in this forum and some others in the web but i did found something clear enough for my "ror''s power" (i''m not completly new but real close ;-) ) Well, I''m developing my application on os x, i''m using svn (team choice) for versionning but i will need to deploy on linux server (with
2009 Nov 02
7
*** Quick help with paperclip ***
Hi All, Someone reccomended using paperclip as a way to easily upload photos. Basically I want a quick and easy solution to allow users to add a profile picture. Anyway - I have followed the tutorial on here: http://jimneath.org/2008/04/17/paperclip-attaching-files-in-rails/ I can add a file, but there isnt anywhere to upload it. I have followed the above tutorial word for word, but i dont
2007 Dec 14
5
1.2.6 to 2.0.1 500 internal server error
Trying to upgrade from 1.2.6 to 2.0.1 and I am getting a 500 internal server error after server start up and I try to make any request or even click on ''about your applications environment''. Am I missing something simple? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk"
2010 Aug 18
2
[Rails 3] remote_function ?
Is the remote_function still valid in Rails 3 as it seems many of the Prototype helpers have been replaced ? (link_to_remote, ...) where can I find any link on it ? not in the standard doc I guess .. thanks for you feedback -- 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
2008 Jan 04
2
oracle adapter + activerecord sessions do not work
Anyone know what''s up with the activerecord session store when using the oracle adapter in Rails 2.0.2 ? I can set a session variable and can then see it''s actually set using the debugger, but after the request completes the session is empty (the @data member is nil). The session_id is staying the same and the updated_at field is being updated but nothing I put in a session
2009 Apr 01
4
permission denied errors with rake db:migrate
I am at a loss here and hoping for some advise on where to begin looking with a series of errors I am suddenly getting when trying to rake: "anything goes here" .. lil-loco:/rails/cem craigmartin$ rake db:migrate (in /rails/cem) rake aborted! Permission denied - /rails/cem/db/schema.rb This is the current error. lil-loco:/rails/cem craigmartin$ rake db:schema:load (in /rails/cem) --
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 },
2008 Jan 31
3
Handling multiple Check boxes in a XHTML Strict way
Hi, The default way we handle an array of checkboxes is like this: <% items.each do |item| %> <%= check_box_tag ''item[]'', "#{item.id}" %> <% end -%> this returns an array item[] that holds the ids of all the items. Now the real issue: 1. The above loop will same ids to ''n'' items 2. All ids will be ''item[]''
2007 Nov 29
4
collection.build or collection.create gives "ArgumentError: wrong number of arguments (1 for 0)"
I have a Project that has_many Tasks. Tasks belongs to a Project. When I try the following: project = Project.new project.tasks.build I get: >> s = Project.new => #<Project:0x25f9e28 @attributes={"name"=>"", "end_at"=>nil, "updated_at"=>nil, "published_at"=>nil, "user_id"=>nil,
2010 Jul 09
6
deployment question: has anyone deployed w. sqlite?
Hi, I''d like to make a demo version of my app available, but I''m not ready to get into database stuff, yet. Has anyone ever deployed with sqlite (what I used to develop my app)? If so, what hosting service(s) would you recommend? Thanks, Lille -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this
2008 Nov 20
7
windows tail development.log
Hi unfortunately I have to develop on a windows machine from time to time. But there is a little problem, mostly for debugging. How can I get the same output on the console as in a linux box or on the mac? I don''t see the full output from the logger on the console. How can I get the full output? SQL and so on thank you veeery much! Rafael
2008 Jun 24
2
upgrade issues
I tried upgrading my older 1.8.6 Ruby install to the latest stable 1.8.6 release, version 1.8.6-p230 specifically, to benefit from the latest security updates. I used this configuration: ./configure --prefix=/usr/local --enable-pthread --with-readline-dir=/usr I''m using mod_rails, so after the Ruby install I restarted Apache. I then found every Rails app on the box was non-functional,
2008 Jan 15
9
using postgres rails/rake fails
hello list, yesterday i installed a fresh rails installation with a proper upgrade of gem to version 1.0.1 i saw, there is still a gem package to support postgresql known as postgres-0.7.9.2008.01.09 on rubyforge, its the newest one of stable postgres support for ruby additionally i installed, of course, a the postgres database on my machine to C:\Programme\PostgreSQL\8.2 after setting up a new
2007 Jan 12
3
Large file storage in database
I''m in the planning stage of an app that will store images and short video clips approximately 1 meg in size from user uploads. My partner wants to use the database to store all of the files, mainly for scaling purposes. I recently built a similar app using the filesystem, but that was to be run from a single machine. This new app will have 3 application servers and a fileserver
2006 Jun 02
14
Which is better for production: MySQL5 or PostGres8.1?
I''m coming from an Oracle and SQL Server background. I''d like to use OpenSource for my next RoR project. MySQL5.x and Postgres8.1 seem to be the most popular. I''d like some comments on which would be the better choice for a production environment and why. Here are my initial concerns in order of priority: 1. Works well with RoR. ( migrations, etc) 2. Stable enough
2006 Jul 23
6
routes
My best guess at how to make this route map.connect '':user'', :controller => ''user'', :action => ''profile'' makes my link_to :controller => ''admin'', :action => ''index'' stop working ? I''m needing urls like http://localhost:3000/username but without breaking all my other controller index