similar to: Changing to edge rails

Displaying 20 results from an estimated 40000 matches similar to: "Changing to edge rails"

2005 Jun 29
4
Problem connecting to MySQL
Hello, when I invoke an action of my rails web app I recieve this message: No such file or directory - /tmp/mysql.sock In my MySQL config file I have this line: socket=/var/lib/mysql/mysql.sock Why Rails doesn''t pick up this value instead of his default value? How could I change the configuration of Rails in order to change that value? -- / Eduardo Yáñez Parareda /
2006 Aug 14
2
Another try with REST
I''m using edge rails. My routes.rb is: map.connect '':controller/service.wsdl'', :action => ''wsdl'' # Install the default route as the lowest priority. map.connect '':controller/:action/:id'' map.resources :team <---- THIS LINE ADDED BY ME Also have a team_controller.rb, a team.rb model and scaffolding for it. If I
2006 Aug 01
1
SimplyRestful
Hi, Is it SimplyRestful compatible with Rails 1.1.4 or Would I need edge Rails? -- Posted via http://www.ruby-forum.com/.
2010 Dec 30
6
validates_inclusion_of doesn't match constant
Hello, I have a model Model: SPECIAL_FEATURES = %w(none top) class Model validates_inclusion_of :special_feature, :in => Model::SPECIAL_FEATURES, :on => :create, :message => "special_feature %s is not defined" belongs_to :team def special_feature attributes = attributes_before_type_cast if attributes["special_feature"]
2008 Aug 24
11
link_to_function check javascript attribute
How could I check the value of an javascript object''s attribute? <div id="new_item_details" style="display:none"></div> <%= link_to_function("Show details...", nil, :id => "show_details") do |page| page.visual_effect(:toggle_blind, :new_item_details) if (page[:new_item_details].style.visibility ==
2006 Aug 11
2
Some questions of REST actions
I''ve set up my application to use edge rails in order to get REST functionality. I''ve a controller called team (team_controller.rb) with some actions (index, list, show, create, new....). Moreover in routes.rb I''ve added map.resources :team so I guess I could call localhost:3000/xxxx/team/1 or localhost:3000/xxxx/team/1;edit Well, when I do the first call, server
2006 Aug 15
3
Darcs and vendor/rails on edge
Calling all rails darcs users! We may be in the minority, but I''m sure we can still share some know how here. Question: how are you managing your vendor/rails directory? svn externals seems to be the preferred option for svn folk (at least this is the approach recommended in the Agile 2 beta). Is there a way to get the same functionality within darcs? That would seem to be the
2007 May 22
5
rails edge
hi, first time trying rspec, and rails edge. Are there any known issues running rspec with rails edge? for one, apparently script/generate scaffold_resource has been renamed just "resource". Do I just search/replace "scaffold_resource" with "resource" in file rspec_resource_generator.rb ? Somethings still missing. before i get "Couldn''t find
2005 Jun 23
6
Problems with Hello World
Hello, I''m installed RubyOnRails in my Fedora Core 4 system. I''ve created an empty web application with: rails cookbook then a controller ruby script/generate controller MyTest And a file named my_test_controller.rb was created at cookbook/app/controller directory. I ''ve written a new method for MyTestController class like: def index render_text "Hello
2008 Jul 04
4
Libs directory
Hello, I had an application on Rails 1.2 or 1.1 (don''t remember). Now I have updated it to 2.1. I had a migrations_helper.rb in the Libs directory which defined foreign_key and drop_foreign_key methods. But now migrate task doesn''t find them. Have I to include this directory somewhere with Rails 2.1? Doesn''t it work as always? Could I use another thing to declare
2006 Jan 26
2
Rails Edge stability - has_many :through
Hi all, If I was to start developing an application using Edge Rails with the view to deploying on Rails 1.1, would I fall foul of lots of bugs, or is it relatively stable? I''d really like has_many :through relationships, to save me dealing with HABTM + associations. Thanks, Tom
2006 Jul 13
6
Migrations + foreign keys
Hi all, In the AWDR author use the execute method to declare foreign keys: execute "alter table.... add constraint.... foreign key...." Is there a ruby sintax to declare a foreign key in a migration class? -- Posted via http://www.ruby-forum.com/.
2006 Aug 17
0
[ADV] The Rails Edge
Hi Folks, Apologies in advance for the blatant advertisement. Just thought you might be interested in our new regional Ruby/Rails conference series. The first will take place on November 16-18 in Denver, CO. http://therailsedge.com -------------------- What''s It About? -------------------- You all know that Rails and Ruby are on the move. Every month brings new tools, new
2007 Jul 04
1
Edge Rails required for ActiveResource
Just wanted to make sure I''m not missing anything here... I''m trying to use ActiveResource and I was trying to avoid using Edge Rails. However, since ActiveResource depends on the edge version of activesupport, I appear to be stuck going edge... have flailed around for a while trying to get ActiveResource to work with 1.2.3 but it just ain''t happening. Am I right? Gotta
2006 Mar 31
1
rake doc:rails fails with edge rails
Hi, I''m sure I''m doing something stupid, but I can''t figure this one out. I want the edge rails docs (I''m using svn:externals for vendor/rails to get edge rails). Running ruby 1.8.4, and edge rails. Tried on linux and OS X. ''rake doc:app'' and ''rake doc:plugins'' works fine, but when I run ''rake
2006 Nov 04
0
Having problems with edge rails
I just switched to Edge Rails (revision 5207) since I want to use the BigDecimal support for an e-commerce website.. Unfortunately, some of my old code seems to be breaking things.. First off, it looks like my "skip_before_filter :check_authentication, :check_authorization, :only => [:login, :forgot_password]" doesn''t work at all, since the before_filter gets executed for
2008 Jan 27
4
(REST) Nested routes
Hello, I''m in troubles with nested routes. I have three models: Team, Tournament and TeamTournaments class Team < ActiveRecord::Base has_many :tournaments, :through => :team_tournaments has_many :team_tournaments class TeamTournament < ActiveRecord::Base belongs_to :team, :foreign_key => ''team_id'' belongs_to :tournament, :class_name =>
2010 Feb 04
3
Rails Edge: gem bundle error
Hi. Having installed Ruby 1.9 from source, I decided to have a look at Rails3 aka Rails edge from git. Therefore, I followed wycats instructions (http://weblog.rubyonrails.org/2010/1/1/getting-a-new-app- running-on-edge), but keep getting an error related to Bundler: $ sudo gem bundle --backtrace ERROR: While executing gem ... (NoMethodError) undefined method `path'' for
2006 Feb 14
0
Edge Rails and Not Working So Consistently
I just started using edge rails and I wanted to know if it was just me or others are having the same problem. With edge rails I am getting a lot of uninitialized constat [Model Name] -> where Model Name changes depending on which model I am accessing. If I hit refresh it sometimes works but not often. Do I have to make a change when I use edge rails? John Kopanas
2006 Jun 08
2
Does Edge Rails play well with GEM Rails?
Hi, I have the current version of GEM rails installed on my machine at the moment. I would like to put edge rails on for a project that I''m working on, but I would like to keep the Gem version, at least for the moment. Also is there any documentation about installing Edge rails? I have looked on the wiki but it was not obvious to me where it is. Cheers Daniel -------------- next part