[Rails] Documentation to Installation Ruby on rails on Ubuntu 11.04

2011-12-25 Thread honey ruby
hey can any one help me out in install the ruby on rails on ubuntu 11.04. i need documentation how to do this i am new bee for ubutu . Thanks in advance -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email

[Rails] Unable to send mails

2011-12-25 Thread honey ruby
hi everyone i used to send mails using ruby on rails but, all of a sudden i am unable to send mails. the code is fine when i use the same code in other systems i am able to send the mails.when it comes to my system i'm not able to send it. can any one help me out what might be the problem . i am us

[Rails] Re: sudo: gem: command not found

2011-12-25 Thread venkatesh A.
you can get error like: sudo: gem: command not found you can type in the terminal "sudo apt-get install rails rails-doc rails-ruby1.8" and next type "sudo gem install rails mysql sqlite3-ruby mongrel" rails will be install any help go to "http://venkatinlinux.blogspot.com"; and search rai

Re: [Rails] Is it possible to manage four models in a form?

2011-12-25 Thread Jim Ruther Nill
On Mon, Dec 26, 2011 at 7:50 AM, Samir Selman wrote: > Try looking into nested forms > > > On Sun, Dec 25, 2011 at 12:49 PM, Mauro wrote: > >> The models are: >> >> Company >> has_many :categorizations >> has_many :categories, :through => :categorizations >> >> Category >> has_many :categoriza

Re: [Rails] ActiveRecord Query

2011-12-25 Thread Jim Ruther Nill
On Mon, Dec 26, 2011 at 6:37 AM, Bharat Ruparel wrote: > Having a tough time creating a where clause and/or query for the > following situation for a table. Will appreciate some help: > > 1. Need to filter records for a specific client_id. No problem, > straightforward where condition > > 2. F

[Rails] method_missing not working in RoR 3.1.1 & Ruby 1.9.2p290?

2011-12-25 Thread Ralph Shnelvar
I am porting a Rails 2.3.8 app (ruby 1.8.7 (2010-01-10 patchlevel 249) [i386-mingw32]) to Rails 3.1.1 Ruby 1.9.2p290 In the 2.4.8 app a method_missing is being called correctly. It's a ghost method. In Rails 3.1.1 Ruby 1.9.2p290 the method_missing is not being called. If I explicitly code a met

Re: [Rails] Is it possible to manage four models in a form?

2011-12-25 Thread Samir Selman
Try looking into nested forms On Sun, Dec 25, 2011 at 12:49 PM, Mauro wrote: > The models are: > > Company > has_many :categorizations > has_many :categories, :through => :categorizations > > Category > has_many :categorizations > has_many :companies, :through => :categorizations > > Classif

[Rails] Videotutoriales Ruby on Rails en español

2011-12-25 Thread Santiago Ponce
Buenas a todos/as, Os paso unos videotutoriales que estamos empezando a realizar de manera "casera" para aquellos que estáis empezando en el mundo ruby on rails. Espero que os guste, y nos gustaría realizar una red social desde 0. Es un proyecto ambicioso, pero muy motivador gracias a los comenta

[Rails] ActiveRecord Query

2011-12-25 Thread Bharat Ruparel
Having a tough time creating a where clause and/or query for the following situation for a table. Will appreciate some help: 1. Need to filter records for a specific client_id. No problem, straightforward where condition 2. For the specific client records found in step 1, need to further filt

[Rails] player undedfined. want video_player in jw_player_helper

2011-12-25 Thread Ralph Shnelvar
I am converting my 2.3.8 Rails app to 3.1.1 I have much of it working. When I attempted to play a video and I found out that the function "player" is undefined. The (latest?) version of vendor\bundle\ruby\1.9.1\gems\jw_player_helper-0.0.1\lib\jw_player_helper\helper.rb uses def video_player(f

[Rails] Is it possible to manage four models in a form?

2011-12-25 Thread Mauro
The models are: Company has_many :categorizations has_many :categories, :through => :categorizations Category has_many :categorizations has_many :companies, :through => :categorizations Classification has_many :categorizations Categorization belongs_to :company belongs_to :categor

Re: [Rails] Re: bundle update hangs.

2011-12-25 Thread Mauro
On 25 December 2011 16:13, Alex Mercer wrote: > Seems on `bundle update` bundler trying to update all dependencies for > all listed gems in Gemfile. > So maybe it's hangs up on some specific gem. Try to update only gems > that you need(e.g. `bundle update rails`). You are right. The problematic g

[Rails] Re: Invalid gemspec.#

2011-12-25 Thread Qzi er
Luis Lavena wrote in post #1038148: > On Dec 25, 7:59am, Qzi er wrote: >> How can I solve the problem "invalid gemspec"? >> >> [root@-PC rubytest]# rails test >> Invalid gemspec in >> [/usr/lib/ruby/gems/1.8/specifications/activemodel-3.2.0.rc1.gemspec]: >> Illformed requirement ["# 3.2.0.rc1"] >>

[Rails] Re: bundle update hangs.

2011-12-25 Thread Alex Mercer
Seems on `bundle update` bundler trying to update all dependencies for all listed gems in Gemfile. So maybe it's hangs up on some specific gem. Try to update only gems that you need(e.g. `bundle update rails`). On Dec 24, 1:47 pm, Mauro wrote: > While bundle install works with no problems, when I

[Rails] Re: spec does not evaluate expression

2011-12-25 Thread jeb
PLEASE FORGET THIS!! IT WAS PURE STUPIDITY!!! On 25 Dec, 14:11, jeb wrote: > It seems my specs has stopped thinking. The spec does not evaluate the > argument in page.should have_content("Logga in på #{farm.name}")  as > an expression but as a string. I have tried other ways of writing the > same

[Rails] Re: Invalid gemspec.#

2011-12-25 Thread Luis Lavena
On Dec 25, 7:59 am, Qzi er wrote: > How can I solve the problem "invalid gemspec"? > > [root@-PC rubytest]# rails test > Invalid gemspec in > [/usr/lib/ruby/gems/1.8/specifications/activemodel-3.2.0.rc1.gemspec]: > Illformed requirement ["# 3.2.0.rc1"] > Invalid gemspec in > [/usr/lib/ruby/gems/1.

[Rails] spec does not evaluate expression

2011-12-25 Thread jeb
It seems my specs has stopped thinking. The spec does not evaluate the argument in page.should have_content("Logga in på #{farm.name}") as an expression but as a string. I have tried other ways of writing the same expression but it doesn't help. This is my very simple spec: # encoding: utf-8 req

[Rails] Fixtures vs Fixture class, what is the intended purpose?

2011-12-25 Thread Alexey Muranov
Hello, i am trying to fix the code for fixtures in rails because it is buggy and internal variable names are confusing, could somebody please explain to me what is the intended purpose of Fixture and Fixtures classes respectively? For example, why do we need both `Fixtures.initialize`and `Fixture.

[Rails] Invalid gemspec.#

2011-12-25 Thread Qzi er
How can I solve the problem "invalid gemspec"? [root@-PC rubytest]# rails test Invalid gemspec in [/usr/lib/ruby/gems/1.8/specifications/activemodel-3.2.0.rc1.gemspec]: Illformed requirement ["# 3.2.0.rc1"] Invalid gemspec in [/usr/lib/ruby/gems/1.8/specifications/actionpack-3.2.0.rc1.gemspec]: Il

[Rails] Re: 2.3.8 v. 3.1.1 text escaping

2011-12-25 Thread Ralph Shnelvar
I'm answering my own question. This is an issue with HAML. The relevant statement comes from http://haml-lang.com/docs/yardoc/file.HAML_REFERENCE.html - - - Haml supports Rails’ XSS protection scheme, which was introduced in Rails 2.3.5+ and is enabled by default in 3.0.0+. If it’s enabled, Haml