[Rails] Re: Filter Index Page

2013-01-29 Thread Rolando Garro
def self.search(params) self.where(params['search']).page(params[:page]) end On Tuesday, January 29, 2013 9:56:54 AM UTC-6, Ruby-Forum.com User wrote: Hi, I'm new here and started working with rails only a month ago. I'm trying to develop a VideoGame Database that is supposed to contain

[Rails] error installing engineyard-dns

2012-08-16 Thread Rolando Garro
I tried gem install engineyard-dns and got the following error: ERROR: While executing gem ... (NoMethodError) undefined method `call' for nil:NilClass what Im doing wrong? -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post

[Rails] Re: Problem with routes.rb

2012-02-15 Thread Rolando Garro
It sounds like something missed restart. On Feb 15, 2:31 am, Muruga murugu2...@gmail.com wrote: Hi all           I am working on rails 2.3.x with Passenger+Apache servers.I have changed a routes.rb file by adding my custom route. After changing this i restarted remote server with touch

[Rails] Re: popover window how-to

2012-02-08 Thread Rolando Garro
Do you mean like json-rpc mapping for rails? On Feb 7, 10:48 pm, Scott Ribe scott_r...@elevated-dev.com wrote: Can anybody point me to good info, preferably all current modern Ruby 1.9 + Rails 3.1 + JQuery, on doing a popover window and integrating into a RoR app? Essentially I need to do

[Rails] Re: popover window how-to

2012-02-08 Thread Rolando Garro
http://www.railslodge.com/plugins/668-json-rpc On Feb 7, 10:48 pm, Scott Ribe scott_r...@elevated-dev.com wrote: Can anybody point me to good info, preferably all current modern Ruby 1.9 + Rails 3.1 + JQuery, on doing a popover window and integrating into a RoR app? Essentially I need to do

[Rails] Re: Reserwavtion system - action book

2012-02-06 Thread Rolando Garro
delegating some logic in to models methods might help. On Feb 6, 12:16 pm, regedarek dariusz.fins...@gmail.com wrote: Hi, I have in my controller action book, but it looks ugly. How to refactor its right way?  def book     if params[:date].present? params[:room].present?

[Rails] Re: Rdoc

2012-02-02 Thread Rolando Garro
gem server On Feb 2, 6:26 am, honey ruby emailtohoneyr...@gmail.com wrote: hey everyone i was looking for a documentation for my project when i google it i found Rdoc but can not understand what exactly this Rdoc does. can any one help me to know about Rdoc. thanks in advance -- You

[Rails] Re: reply

2012-02-01 Thread Rolando Garro
System.getenv() On Jan 31, 11:03 pm, guru sai guru.sa...@gmail.com wrote: how to capture the response code from our rails application -- 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

[Rails] Re: When running tests, initializers run twice.

2012-02-01 Thread Rolando Garro
There should be a place to define the enviroments, I guess On Jan 31, 7:36 pm, Roger Braun ro...@rogerbraun.net wrote: Hi everyone, when I run my rspec tests, my initializers are run twice: Once in development mode, once in test mode. Why does Rails do this? Can this be turned off? --

[Rails] Re: Why Heroku so slow?

2012-02-01 Thread Rolando Garro
maybe is something with the content that is heavy to load On Jan 31, 10:56 am, Rodrigo Ruiz rodrigo.ru...@gmail.com wrote: Hi, I just deployed a simple crud (Rails 3.1) to heroku, and it takes more than 5 seconds to load the index page. Does anyone know how to solve this? Ps.: locally it

[Rails] Re: Rails 3: include a field from has_many through association

2012-01-31 Thread Rolando Garro
you have to do an extra loop to get recommendation_id I think your @rec_id should be an array I have had problems with has_many through in the past personally I try to avoid it. On Jan 30, 2:54 pm, Raminder G. li...@ruby-forum.com wrote: My model association is as follows: #book model class

[Rails] gdata gem on rails 3 ruby 1.9

2012-01-30 Thread Rolando Garro
Hi: Im trying to use gdata 1.1.2 on a rails3 ruby1.9 project I added gem 'gdata' to Gemfile but keep getting the error: uninitialized constant GData:: I installed the gem with no problem Does anybody knows how to setup rails3 with gdata? I'll really appreciate any advice -- You received this