Re: [Rails] -bash: ruby: command not found

2012-11-03 Thread tonypm
This guide pretty much worked for me as i recall. http://library.linode.com/frameworks/ruby-on-rails-nginx/centos-5 On Thursday, 1 November 2012 16:00:59 UTC, Norbert Melzer wrote: 2012/11/1 keerthi priya emailtoke...@gmail.com javascript:: Thanks Norbert. i have installed ror on cen os . i

[Rails] last saved record not retrieving .

2012-11-03 Thread Fahim Patel
Hi all, from last 1 hour i am facing one problem. I have written a code for creating user and show them in index page after save. Code is working perfectly but on index page i am getting all record till second last record saved, but i am not getting current record which is saved. But

Re: [Rails] last saved record not retrieving .

2012-11-03 Thread Colin Law
On 3 November 2012 11:46, Fahim Patel pafa...@gmail.com wrote: Hi all, from last 1 hour i am facing one problem. I have written a code for creating user and show them in index page after save. Code is working perfectly but on index page i am getting all record till second last record

Re: [Rails] last saved record not retrieving .

2012-11-03 Thread Fahim Patel
On Saturday, November 3, 2012 5:20:35 PM UTC+5:30, Colin Law wrote: On 3 November 2012 11:46, Fahim Patel paf...@gmail.com javascript: wrote: Hi all, from last 1 hour i am facing one problem. I have written a code for creating user and show them in index page after

Re: [Rails] last saved record not retrieving .

2012-11-03 Thread Colin Law
On 3 November 2012 12:40, Fahim Patel pafa...@gmail.com wrote: On Saturday, November 3, 2012 5:20:35 PM UTC+5:30, Colin Law wrote: On 3 November 2012 11:46, Fahim Patel paf...@gmail.com wrote: Hi all, from last 1 hour i am facing one problem. I have written a code for creating

Re: [Rails] last saved record not retrieving .

2012-11-03 Thread Fahim Patel
On Saturday, November 3, 2012 7:00:23 PM UTC+5:30, Colin Law wrote: On 3 November 2012 12:40, Fahim Patel paf...@gmail.com javascript: wrote: On Saturday, November 3, 2012 5:20:35 PM UTC+5:30, Colin Law wrote: On 3 November 2012 11:46, Fahim Patel paf...@gmail.com wrote:

[Rails] Re: Adding associations without commiting to database

2012-11-03 Thread David D.
For that, they use: p.reload and/or p.tags.reload The tag is saved when you save p (provided you have :autosave = true set) That's shown here: http://api.rubyonrails.org/classes/ActiveRecord/AutosaveAssociation.html under the examples. -- Posted via http://www.ruby-forum.com/. -- You

Re: [Rails] 500 Internal Server Error

2012-11-03 Thread Nomosyn
Thank you for the reply :-) The problem occurred after a bundle update and we did not check what got updated... The problem comes from https://github.com/bcardarella/client_side_validations, a plugin that we used. Here is the problem : with the :validate = true, f seemed to expect fields

[Rails] jquery mobile update div tag

2012-11-03 Thread jenna_s
Hi, I'm hoping there's Rails developers who are working with jquery mobile and can help me out with this simple thing. I'm trying to update a div on a page with an Ajax call and it doesn't work. If I call jquery directly from the browser, the div gets updated. However, if I call it through a

[Rails] Wierd NomethodError

2012-11-03 Thread roelof
Hello, I have my source here : https://github.com/roelof1967/tamara When I do cucumber I get this error message : Then he should see Welcome, Aslak # features/step_definitions/login_steps.rb:27 undefined method `messages' for nil:NilClass (NoMethodError)

Re: [Rails] Wierd NomethodError

2012-11-03 Thread Colin Law
On 3 November 2012 20:43, roelof rwob...@hotmail.com wrote: Hello, I have my source here : https://github.com/roelof1967/tamara When I do cucumber I get this error message : Then he should see Welcome, Aslak # features/step_definitions/login_steps.rb:27 undefined method

[Rails] Suggestion for Rails 4

2012-11-03 Thread Abram
When I began learning rails I found it frustrating that array and active record relation objects could not be queried in the same fashion as database tables. Before too much confusion let me explain. When I want something from a database table I simply write something like:

Re: [Rails] Suggestion for Rails 4

2012-11-03 Thread Colin Law
On 3 November 2012 21:43, Abram funkdif...@gmail.com wrote: When I began learning rails I found it frustrating that array and active record relation objects could not be queried in the same fashion as database tables. Before too much confusion let me explain. When I want something from a

[Rails] Re: Suggestion for Rails 4

2012-11-03 Thread Abram
Well, it does, but it hits the DB again. On Sunday, November 4, 2012 10:43:29 AM UTC+13, Abram wrote: When I began learning rails I found it frustrating that array and active record relation objects could not be queried in the same fashion as database tables. Before too much confusion let

[Rails] Re: Suggestion for Rails 4

2012-11-03 Thread Abram
Basically it just chains on to the previous db query, but still runs a new one.. it doesn't query the active record relation object. Also, you cannot query an array of objects.. say @products = Product.all ... then say @products.where(:color=black) .. You will get NoMethodError: undefined

[Rails] Keep all validations inside a single ActiveModel::Validator class

2012-11-03 Thread Irio Musskopf Junior
Hi! I plan to use ActiveModel::Validator to validate a plain Ruby class, but I have intention to keep all validations outside the original class, while using PresenceValidator and FormatValidator, default on Rails. Something like this: # payer.rb module MyMoip class Payer include

Re: [Rails] Re: Suggestion for Rails 4

2012-11-03 Thread Jim Ruther Nill
On Sun, Nov 4, 2012 at 6:02 AM, Abram funkdif...@gmail.com wrote: Basically it just chains on to the previous db query, but still runs a new one.. it doesn't query the active record relation object. Also, you cannot query an array of objects.. say @products = Product.all ... then say