similar to: [Linux] Error installing rails "activemodel requires activesupport"?

Displaying 20 results from an estimated 1000 matches similar to: "[Linux] Error installing rails "activemodel requires activesupport"?"

2011 Sep 11
3
bundle install question
Having a problem... I am working on a project where I am using bundle & Gemfile and it''s working OK. The gems are all installed and a few git based gems are in my ~/.bundler/ruby/1.8 directory which is OK I guess. When I did an svn commit and checked it out on another user''s account, I then ran ''bundle install'' from his account and even though all of the
2011 Jul 11
4
How to Install ruby 1.9.2/1.9.1 and Rails 3.x on Ubuntu
Hello All, I have Ubuntu 11-04, I would want to install ruby 1.9.2/1.9.1 and Rails 3.x. I need the least complicated way of doing this. Rgds, Janus -- *Satajanus Nig. Ltd * -- 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
6
RVM Issue
I''m a total rails newb and is trying to install RVM. The terminal tells me that RVM installed just fine but when I try commands like "rvm notes" or "rvm install 1.9.2" I get: "-bash: rvm: command not found" Does anyone know why? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to
2011 Jan 14
2
Rspec autotest error
Hi all, I tried testing with Rspec for first time, following a tutorial. "rspec spec/" works fine but when I try ''autotest'' it gives me the error message below. I also made a gist about it: https://gist.github.com/779265 It seems like a redgreen or ZenTest error. I''m using Ubuntu10, Rails3, Ruby 1.9 and RVM. Any help is appriciated, thanks in advance, gezope
2010 Oct 23
4
Could not find 'sqlite3-ruby' error in Ubuntu
Hi all, please help me: First time I totally had to delete all ruby and Rails because of this problem. How to solve it well? The message is: *Could not find gem ''sqlite3-ruby (>= 0, runtime)'' in any of the gem sources.* *Try running `bundle install`* I have *Ubuntu* Linux. ruby -v = *1.9.2p0* gem -v = *1.3.7* rails -v = error message again, 2 hours ago it was "rails
2012 Aug 05
0
ActiveRecord::Validator vs ActiveModel::Validator
I know that there is an ActiveModel Validator class https://github.com/rails/rails/blob/master/activemodel/lib/active_model/validator.rb which is used for the class level validation macros. But I didn''t find a an ActiveRecord Validator class. From my understanding in Rails 3, validations have been moved into ActiveModel to leave ActiveRecord as an ORM. So now I see this Rails 3 code
2012 Sep 03
0
undefined method `singular_route_key' for "User":ActiveModel::Name
In ActionDispatch::PolymorphicRoutes, there is a call to build_named_route_call an on line 172 (of latest rails code from github), there is a call to singular_route_key: model_name_from_record_or_class(parent).singular_route_key Now model_name_from_record_or_class returns an ActiveModel::Name object, which is a wrapper to the string class, that returns a string name of the class of an
2010 Dec 22
2
Please help with installing mysql gem to linux machine w/ xampp
Hello all, I know this is not an uncommon question, but none of the tutorials/tips solve my problem. I''ve got a linux machine running Ubuntu 10.4 with ruby, gem, rails, and xampp installed. Now when I try to install the mysql gem (via: $sudo gem install mysql -with-mysql-config=/opt/lampp/bin/mysql_config), I get: Building native extensions. This could take a while... ERROR: Error
2010 Aug 13
2
Rails 3 / ActiveModel for Credit Card information?
When submitting billing information in the past I''ve always used attr_accessor for credit card details as they should not be saved in the database. In addition I always end up storing the card expiration date so that the date form helper works correctly. With Active Model it seems logical to create a CreditCard class to hold this data instead. **1st issue.** It seems there still
2011 May 19
0
NoMethodError (undefined method `serializable_record' for #<ActiveModel
Hi , Am using rails 3 .I have added code in my controller ----------------------------------------------------------------------- la.map{|c| ActiveRecord::Base::Serializer.new(c).serializable_record ----------------------------------------------------------------------- But am getting below error ------------------------------------------------------------ NoMethodError (undefined method
2010 Apr 09
0
[PATCH] add :root option to ActiveModel JSON serialization
This is a small, straightforward patch that I''d love to see merged: https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/4358-patch-add-root-option-to-activemodel-json-serialization It''s all pretty self-explanatory, it basically just ports a useful option from to_xml to to_json, making their interfaces more compatible with each other. Feedback would be greatly
2012 Jul 08
0
ActiveModel::ValueObject
Hi guys Seeing `composed_of` removed I put together a quick proof-of-concept ValueObject implementation on top of ActiveModel and ActiveRecord `serialize`. https://gist.github.com/3070184 Features: - VO''s are immutable - VO''s are identified by their attributes - VO''s can be conveniently created from hashes (with a little extra work) What do you think? -- You
2011 Feb 05
3
ActiveModel::AttributeMethods limiting
In my attempt to add AM:Dirty to my model I realized that AM#AttributeMethods is a bit imperfect. It''s impossible to generate attribute methods step-by-step in DataMapper-like manner. class Model include ActiveModel::Dirty def self.property(name, klass = String) define_property_accessors(name, klass) # This method will be called once, because of
2012 Jun 21
1
ActiveModel::Serializers::JSON support arbitrary keys
Is there a reason why AM:S doesn''t support arbitrary keys to serialization? I can see a lot of uses cases where arbitrary keys could come handy. Right now, if one tries to do it, AM:S checks if the keys match a method of the model and raises exception if it can''t find any. class Client < ActiveRecordBase attr_accessible :name, :address, as: :creator include
2010 Nov 06
0
ActiveModel: undefined method `attributes`
Trying to setup a tableless model, and serialize it to XML, but am getting: NameError: undefined local variable or method `attributes'' anyone know what I need to get the attributes method defined? thanks! -- 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 Sep 17
0
Key Value Json ActiveModel::Errors
Hi all, I''m using Rails 3.0, and I have a model which validates if the attribute :name is present. On my my views, I use Jquery to submit the form which creates the model. If the name is not present, Rails returns something like this Json: [''Name is a required value''] Is there a way to make it return something like this? [''name'': ''Name is a
2010 May 27
1
Question on Rails 3 : forms && ORM && ActiveModel
I''m a Django/Catalyst user that''s evaluating Rails ... I need a Ruby framework, and I''m trying to see if learning Rails is worth it or I should just go for Sinatra + various libs available. Django has a couple of things I like ... 1) the Forms API In Django I like that it''s being decoupled from models ... form objects have fields with validation rules that
2012 Sep 25
3
Proposal for a new ActiveModel::Errors structure
There are few issues with the current ActiveModel::Errors class. Firstly, when an error is added to ActiveModel::Errors class via #add method (https://github.com/rails/rails/blob/master/activemodel/lib/active_model/errors.rb#L294) its translation is added. It should not be translated when being added, but only when being read. The second issue is a bit bigger. We''d like to create
2013 Jan 20
6
preload_app = true causing - ActiveModel::MissingAttributeError: missing attribute: some_attr
Greetings, I''m getting this - ActiveModel::MissingAttributeError: missing attribute: some_attr - on a random basis under a unicorn server, running rails 3.2 and ruby 1.9.3 As the case of the last poster in the following thread - https://github.com/rails/rails/issues/1906 - I too am able to resolve this issue by settingpreload_app to false. However, this is not the behaviour I want to
2011 Jan 25
2
Radmine
Hi, I know it''s a silly question, how to start Remine server? tried "./ctlscript.sh start" mysql (pid 8192) already running starting port 3001 starting port 3002 Syntax OK httpd (pid 8511) already running subversion (pid 8218) already running When I check localhost:8080/redmine Service Temporarily Unavailable Why is that? Thanks, gezope -- You received this message