similar to: Two versions of Rails on one PC

Displaying 20 results from an estimated 1400 matches similar to: "Two versions of Rails on one PC"

2006 Jan 22
11
ActiveRecord find
Suppose I have three tables - authors, posts and topics. Every post have a topic and every topic has an author, so I have posts.topic_id and topic.author_id. When the author is guest (not registered), author_id is nil. I need to find all the posts (in one query) where every post have all the information of the topic and the auther, so if p is one of those posts I could get the name of the
2006 Jan 29
1
Accessing attributes
I have a name of an attribute and I need to get its value and set a new value for it: x1 = a.foo a.foo = x2 How do I do that if the name of the attribute ''foo'' is a var? I thought about doing this: attribute_name = ''foo'' x1 = a.attributes[attribute_name] a.attributes[attribute_name] = x2 but this is a bypass and I''m quite sure it would cause
2006 Apr 06
5
Using helper method of another model
I have a template that belongs to a certain model (model A). I need to call a helper method of a different model (model B). Then I need the helper method of B to call a helper method of model C. I tried using "include" and "require" and using namespaces, but I got "undefined method". What is the way to do it? -- Posted via http://www.ruby-forum.com/.
2005 Dec 23
6
Save using Update
Hi, I want to update an existing row in table "items" where items.id == 10 I tried this: item = Item.new item.f1 = ... item.f2 = ... ... item.id = 10 item.save I got an error Duplicate entry ... for key 10 : INSERT INTO items ... How do I make item.save to use UPDATE instead of INSERT? -- Posted via http://www.ruby-forum.com/.
2006 Jan 17
15
legacy database and finder_sql nightmare!
This is my first rails app with a legacy database and I''m having a terrible time getting the models set up correctly. I have an order table that has a primary field named order_number. I have a name table with a primary of item_number. These two tables are liked by the item_number and the order_number, but not as you might think. If the order_number is 2500, then each entry in
2006 Apr 09
16
Rails 1.1.2: A tiny fix for gem dependencies
The new gem version dependency system from Rails 1.1.1 needed a few tweaks to work properly and to stop throwing meaningless warnings. This tiny release makes up for that. To install: * gem install rails * rake rails:update:configs (to get the latest config/boot.rb) This release also signals our new commitment to do more tiny releases from the stable branch, which only gets bug fixes. So it will
2006 Apr 25
4
Symlinks in Capistrano?
I have a few projects with large directories (say, user-uploaded files) that make using Capistrano a bit awkward. However, I suspect that I may have reached the "write a custom task" level. (I suppose I''m just thinking out loud, here...) It seems as though I''d want this directories symlinked in /shared... Maybe there''s a way to extend the
2011 Mar 07
2
[Bug 708] New: Some accepted packets get lost
http://bugzilla.netfilter.org/show_bug.cgi?id=708 Summary: Some accepted packets get lost Product: libnetfilter_queue Version: unspecified Platform: x86_64 OS/Version: Debian GNU/Linux Status: NEW Severity: normal Priority: P3 Component: libnetfilter_queue AssignedTo: netfilter-buglog at
2006 Jan 03
4
in-memory test database -- where''s the schema?
I''m trying to get the unit testing for a new project to use the wonderful :memory: database specification for SQLite. However, like many people before me, I can''t get the schema to import or have anything else useful. Initially, the error I get is: /usr/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.1.0/lib/sqlite3/errors.rb:94:in `check'': cannot rollback - no transaction is
2006 Feb 27
16
Rails 1.1
It was said at one time that Rails 1.1 might be released in February. Is that still likely? Thanks, Don Mc -- Posted via http://www.ruby-forum.com/.
2006 Apr 10
1
Tracking 1.1.x release using svn:externals?
Now that Rails is doing regular updates to 1.1.x branch, is it possible to track the this release using svn:externals inside my app? Currently I have: rails http://dev.rubyonrails.org/svn/rails/tags/rel_1-1-1/ in my vendor directory. Can I change this to something like a wildcard ''rel_1-1-x'', ensuring that I always have the latest of the stable 1.1 branch? Cheers! Tom
2006 Mar 31
1
rails + svn automation script
Anyone got a script to share that: 1. Creates a trunk directory 2. Creates a trunk/vendor directory 3. Adds the above to svn 4. Modifies trunk/vendor to use a certain rails revision (i.e. trunk or 1.1) 5. Runs trunk/vendor/rails/.../bin/rails to generate a rails directory skeleton 6. Modifies the svn:ignore for the logs and config/database.yml 7. Moves config/database.yml to
2006 Mar 29
7
Dreamhost upgraded 1.1 - app doesn''t work
Does anyone know how long it will be until Dreamhost get''s the Rails 1.1 install running correctly? My site has been down since last night at about 7:00 pm (I think). It''s annoying, and are a lot of others having this problem too? Thanks. -- Posted via http://www.ruby-forum.com/.
2007 Jan 25
1
acts_as_tree with acts_as_list
Hello all, I''m having trouble using acts_as_list with acts_as_tree to order the "children". I''ve found a few old posts on the web that seem to indicate that this once worked. class Whatever < ActiveRecord::Base acts_as_tree :order => :position acts_as_list :scope => :parent_id Although the ''position'' field is being populated, it appears
2006 May 09
1
Rails freeze, weird error
Hello -- So, I have a bunch of apps on my dev box, all currently v1.0.0. I thought I could use the freezing techniques to test each app for 1.1.x compatibility individually, but that doesn''t seem to be working out... First, I checked out from http://dev.rubyonrails.org/svn/rails/tags/rel_1-1-2/ into vendor/rails Then I ran "rake rails:update". Then I went into console, and
2006 May 19
6
Capistrano: update instead of checkout?
Hello, Just started to use Capistrano for deployment and everything works beautifully and as advertised. Thanks Jamis for this great piece of software. However, in my case, the deploy task takes quite some time since my SVN repository resides on a different continent than my app/db server and I''ve frozen all the rails code in the vendor dir and checked in. All in all my app sums up to
2007 Apr 09
1
Problem on Dreamhost: engine for rails 1.1.6
Hi, I''m trying to set up Substruct (shopping cart engine) on Dreamhost. I failed several times and tracked down to the problem area. I can reproduce the problem with these steps: 1. install rails 2. change public/.htaccess for fcgi 3. change public/dispatch.fcgi for RailsFCGIHandler At this step, I can execute public/dispatch.fcgi without error. 4. svn co
2006 May 22
3
rails naming convention for model: community
Hello, How does Rails deal with the pluralization of community. I have "community" as my model name. Will Rails automatically look for a table name "communities" or do I have to name the table "communitys"? Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Aug 17
3
Developing in different versions of rails at the same time?
Hi, I was wondering if some of you have had to keep more than one version of Rails on your machine at a time? If you have more than one customer, they may have different requirements. You might need to work on a pre-existing app that is not scheduled to be moved to a newer version of Rails right now. How is the best way to deal with this? thanks, jp -- Posted via
2006 Apr 03
4
How to create new rails 1.1 app if only rails 1.0 installed?
I have rails 1.0 and I cannot install rails-1.1 system-wide. However, I can freeze_edge (but just once because of svn 1.1.4 on Debian). Under this scenario, how can I create brand new rails-1.1 apps? I know how to freeze_edge *existing* rails-1.0 apps but that process seems to be imperfect because the script/about command and /rails/info/properties URL do not work after freezing to 1.1.0