[Rails] Re: Rails Console Sandbox : .save | .create

2012-05-25 Thread Francesco DG
Thank you Fred ! Meanwhile I simply realized that I had to submit a new user with all attributes and not just 2 : > that was why the validation did not work and the transaction was rolled back. Thanks for the user2.errors hint... Francesco On Friday, May 25, 2012 10:16:59 AM UTC+2, Frederick

[Rails] Re: Rails Console Sandbox : .save | .create

2012-05-25 Thread Frederick Cheung
On May 24, 2:58 pm, Francesco De Grandi wrote: > At the end of Rails Tutorial chapter 6, I have the > development .sqlite3 db : 1 table and 1 row (= user id:1 see below) : > > > when running from the Rails Concole Sandbox, to create other rows/records, > > I can not save or create > > here is w

[Rails] Re: rails console is not working

2012-03-02 Thread Michal Papis
I see you use linux, most distributions provide a valid build and headers for readline, please use quick fix instruction from top of this page: https://rvm.beginrescueend.com/packages/readline/ On Mar 2, 10:51 am, Anurag Sachan wrote: > I also use  rvm pkg install readline but it did not help me

[Rails] Re: rails console is not working

2012-03-02 Thread Anurag Sachan
I also use rvm pkg install readline but it did not help me On Friday, 2 March 2012 15:20:01 UTC+5:30, Anurag Sachan wrote: > > I got this error in my terminal when i type rails c: > > -

Re: [Rails] Re: rails console not working with my application

2011-01-06 Thread Walter Lee Davis
On Jan 6, 2011, at 5:01 PM, Sawan T. wrote: "I have gem list rails showing me 3.0.3, 3.0.0 and 2.3.5 is it anything to do with your app_config.rb and I dont see any in vendor/rails its all have some plugin folders. I am working with tutorials which needed those rails version and 2.3.5 sinc

[Rails] Re: rails console not working with my application

2011-01-06 Thread Sawan T.
Marnen Laibow-Koser wrote in post #972937: > Sawan T. wrote in post #972932: >> Marnen Laibow-Koser wrote in post #972926: >>> Sawan T. wrote in post #972924: Hi I have couple of issues with my application. I have an app checked out from a repository on to my local machine. rake commands

[Rails] Re: rails console not working with my application

2011-01-06 Thread Marnen Laibow-Koser
Sawan T. wrote in post #972932: > Marnen Laibow-Koser wrote in post #972926: >> Sawan T. wrote in post #972924: >>> Hi I have couple of issues with my application. I have an app checked >>> out from a repository on to my local machine. rake commands like rake >>> db:create and rake db:migrate and g

Re: [Rails] Re: rails console not working with my application

2011-01-06 Thread Colin Law
On 6 January 2011 20:55, Sawan T. wrote: > Marnen Laibow-Koser wrote in post #972926: >> Sawan T. wrote in post #972924: >>> Hi I have couple of issues with my application. I have an app checked >>> out from a repository on to my local machine. rake commands like rake >>> db:create and rake db:mig

[Rails] Re: rails console not working with my application

2011-01-06 Thread Sawan T.
Marnen Laibow-Koser wrote in post #972926: > Sawan T. wrote in post #972924: >> Hi I have couple of issues with my application. I have an app checked >> out from a repository on to my local machine. rake commands like rake >> db:create and rake db:migrate and gem list, gem install are working with

[Rails] Re: rails console not working with my application

2011-01-06 Thread Marnen Laibow-Koser
Sawan T. wrote in post #972924: > Hi I have couple of issues with my application. I have an app checked > out from a repository on to my local machine. rake commands like rake > db:create and rake db:migrate and gem list, gem install are working with > the app but not any other commands like rails

Re: [Rails] Re: rails console and tests launch time too long?

2010-11-06 Thread radhames brito
i have the same problem and i dont use a IDE , im on ubuntu 10.04 rails 3.0.1 and ruby 1.9.2 with rvm check this out time rspec spec/models/user_spec.rb ... Finished in 0.80685 seconds 3 examples, 0 failures real0m19.700s user0m18.045s sys0m1.332s less than a second for the test a

[Rails] Re: rails console and tests launch time too long?

2010-11-06 Thread drKreso
I've had some success with snailgun, it does pretty much what you are asking for (speeding up preload) http://kresimirbojcic.com/2010/11/speeding-up-rails-testing-cycle/ Best Regards, Kreso On Oct 16, 12:03 pm, Michal Burak wrote: > When I run script/console I have to wait like 10 seconds to t

[Rails] Re: rails console and tests launch time too long?

2010-10-18 Thread Robert Walker
Michal Burak wrote in post #954952: > The speed is the same with or without RadRails. What operating system are you using? I have heard this complaint many times with certain Windows versions (may all versions). If you're on some form of UNIX/Linux based system then your problem is likely somet

[Rails] Re: rails console and tests launch time too long?

2010-10-17 Thread Michal Burak
The speed is the same with or without RadRails. -- Posted via http://www.ruby-forum.com/. -- 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 rubyonrails-t...@googlegroups.com. To unsubscribe from this g

[Rails] Re: Rails console

2008-10-30 Thread Farrel
On Oct 30, 7:05 pm, Frederick Cheung <[EMAIL PROTECTED]> wrote: > You're calling Array#rand (a private method Array defines), whereas > you want to call Kernel#rand. Replace rand with Kernel.rand and you > should be ok That was it. Thanks for the tip. I didn't know Rails added in it's own rand me

[Rails] Re: Rails console

2008-10-30 Thread Frederick Cheung
On 30 Oct 2008, at 16:22, Farrel wrote: > > > As you can see if I execute the code myself it seems to work. If I > copy that same code into irb it works perfectly. > You're calling Array#rand (a private method Array defines), whereas you want to call Kernel#rand. Replace rand with Kernel.rand a

[Rails] Re: Rails console, saving objects

2008-10-06 Thread Philip Hallstrom
On Oct 5, 2008, at 7:22 PM, Raistlin Majere wrote: > > I was reading a book and following the instructions in it. > >>> class Story < ActiveRecord::Base; end > => nil >>> story = Story.new > => # updated_at: nil> >>> story.class > => Story(id: integer, name: string, link: string, > created_at: d