[Rails] Singular form of model

2012-09-07 Thread Soichi Ishida
Rails 3.1.3 ruby 1.9 I have a model called, Give. I understand that it may not be a good choice for a model, but couldn't be helped. Rails seems to have recognized its singular form to be gife rather than give, which I hoped to be. So, I put in routes.rb resources :gives, :singular = :give

[Rails] The bundled mysql.rb driver has been removed from Rails 2.2.

2012-09-07 Thread khamar md
!!! The bundled mysql.rb driver has been removed from Rails 2.2. Please install the mysql gem and try again: gem install mysql. rake aborted! no such file to load -- mysql i got this error while creating the db.do respond if someone knows about it. -- Posted via http://www.ruby-forum.com/.

[Rails] Re: I wanna make a new rails community :)

2012-09-07 Thread Manoj M.
Tima wrote in post #1074602: Hi everyone! I'm a newbie engineer. I started rails programming, but I'm learning alone and can't understand other rails cord so much. So I wanna have friend with other newbie rails engineers and share a process of making apps. It is not for sharing the result

[Rails] Re: I wanna make a new rails community :)

2012-09-07 Thread Manoj M.
Hello tima, can i join with u guys, am also new to rails,. regards manoj -- 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

[Rails] RoR project deployment using Nginx and Thin

2012-09-07 Thread Sumit Srivastava
Hi, I have been trying to deploy a Rails project using Nginx and thin but always displays the Default page only. I did following configurations, Step 1: Made a symlink of my project in /var/www Step 2: Installed thin and Nginx. Step 3: Added Upstream block in the nginx.conf file Step 4:

[Rails] Performance reports by mail in production

2012-09-07 Thread Nick Snels
Hi, in development mode you can turn auto_explain_threshold_in_seconds on and see when a query is slow in the command prompt. Is there a gem that can send me slow queries and slow loading pages in production mode? That would make monitoring performance a lot easier. Thanks. -- Posted via

[Rails] Re: Assets are not compiling

2012-09-07 Thread sjm
Hi, I had this problem too, but resolved it by creating another *application.css * manifest file specifically for IE, I placed it in the same directory as the CSS file for IE. You'd obviously need to compile the assets again. The conditional inclusion should then work for IE. There may be

Re: [Rails] Re: Assets are not compiling

2012-09-07 Thread Loganathan Sellapa
Thanks Steve I will do it and let you know. regards, Loganathan Mob: +91 7760780741 | +91 9944414388 Skype: loganathan.sellappa ViewMe http://vizualize.me/loganathan On Fri, Sep 7, 2012 at 2:31 PM, sjm stevenjamesm...@gmail.com wrote: Hi, I had this problem too, but resolved it by creating

[Rails] Re: The bundled mysql.rb driver has been removed from Rails 2.2.

2012-09-07 Thread Matt Jones
On Friday, 7 September 2012 02:25:32 UTC-4, Ruby-Forum.com User wrote: !!! The bundled mysql.rb driver has been removed from Rails 2.2. Please install the mysql gem and try again: gem install mysql. rake aborted! no such file to load -- mysql i got this error while creating the

[Rails] Multilanguage Approach I18n

2012-09-07 Thread Loganathan Sellapa
Hi All, what is the common approach when dealing with multi language web sites in Ruby on Rails? - Language text files - Database driven approach Also Which will be faster? regards, Loganathan Mob: +91 7760780741 | +91 9944414388 Skype: loganathan.sellappa ViewMe http://vizualize.me/loganathan

Re: [Rails] Multilanguage Approach I18n

2012-09-07 Thread Pio Ryan Lumongsod
Language yaml files. You can add more entry to the en.yml you already have. You can also store the user's language preference in the cookies and in the DB. On Fri, Sep 7, 2012 at 9:35 PM, Loganathan Sellapa loganathan...@gmail.comwrote: Hi All, what is the common approach when dealing with

[Rails] Re: I wanna make a new rails community :)

2012-09-07 Thread Tima
Thank you for reply! I'll learn Rails with you! I started blog of rails hah. I gonna make a group with WordPress and invite you :) -- 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

Re: [Rails] Multilanguage Approach I18n

2012-09-07 Thread Loganathan Sellapa
Which approach will be better for large application either files/db? regards, Loganathan Mob: +91 7760780741 | +91 9944414388 Skype: loganathan.sellappa ViewMe http://vizualize.me/loganathan On Fri, Sep 7, 2012 at 7:25 PM, Pio Ryan Lumongsod pior...@gmail.comwrote: Language yaml files. You

[Rails] Re: New to RoR: Need some assistance displaying data from multiple tables.

2012-09-07 Thread Brian Ekmark
Hello Uma, I am calling this from my Home Controller, but upon a successful login I store the user_id as a session, but here is the code that I am using and if I understand it correctly RoR handles the rest: class HomeController ApplicationController def index @mytasks =

Re: [Rails] Singular form of model

2012-09-07 Thread Walter Lee Davis
On Sep 7, 2012, at 2:07 AM, Soichi Ishida wrote: Rails 3.1.3 ruby 1.9 I have a model called, Give. I understand that it may not be a good choice for a model, but couldn't be helped. Rails seems to have recognized its singular form to be gife rather than give, which I hoped to be. So,

[Rails] Re: I wanna make a new rails community :)

2012-09-07 Thread Tima
Hi! I made a e-mail address for this group! please send me a e-email to railsg...@gmail.com ! 2012年9月7日金曜日 23時11分10秒 UTC+9 Tima: Thank you for reply! I'll learn Rails with you! I started blog of rails hah. I gonna make a group with WordPress and invite you :) -- You received this

[Rails] Re: Singular form of model

2012-09-07 Thread Robert Walker
Soichi Ishida wrote in post #1075000: I have a model called, Give. I understand that it may not be a good choice for a model, but couldn't be helped. You are right that Give is a really bad choice for a model name. Models should be nouns not verbs (i.e. One gives a gift). The model would be

Re: [Rails] Re: Singular form of model

2012-09-07 Thread Dave Aronson
On Fri, Sep 7, 2012 at 1:52 PM, Robert Walker li...@ruby-forum.com wrote: That is a really odd inflection bug though. It must be triggering the wrong inflection rule somehow. It's probably got a rule to deal with plurals like knives, lives, wives, etc. Seeing a table end in ives (and not

[Rails] A Question about Model and Database?

2012-09-07 Thread ACK
hi i m new to rails i need to know the = which is the best way to create Database table in Rails? 1) *rails generate model User name:string email:string* this will create a migration file with something like this class CreateUsers ActiveRecord::Migration def change create_table :users do

[Rails] Javascript error in Rails

2012-09-07 Thread @iamreff
Hi, I'm getting this error in rails 3.2.3. I think I've had it since installing rails on this system 2 weeks ago. This error appears open loading the home page of my site. Rendered static_pages/home.html.erb within layouts/application (0.7ms) Completed 500 Internal Server Error in 16ms

[Rails] Re: Singular form of model

2012-09-07 Thread Soichi Ishida
Thanks everyone. have added ActiveSupport::Inflector.inflections do |inflect| inflect.irregular 'give', 'gives' end in the inflection.rb , then now gives GET/gives(.:format) {:action=index, :controller=gives} POST /gives(.:format)

Re: [Rails] Javascript error in Rails

2012-09-07 Thread Javier Quarite
Can you post the content of app/assets/javascripts/application.js:13 and also your Gemfile? JavierQ -- 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-talk@googlegroups.com. To unsubscribe

[Rails] :index = nil

2012-09-07 Thread John Merlino
On here: http://api.rubyonrails.org/classes/ActionView/Helpers/FormHelper.html#method-i-check_box-label-Gotcha you see this code: %= fields_for project[invoice_attributes][], invoice, :index = nil do |form| % %= form.check_box :paid % ... % end % why are they using :index = nil in the

Re: [Rails] Javascript error in Rails

2012-09-07 Thread @iamreff
Hola Javier, I figured out what was wrong. Somewhere along the way in getting Rails installed I had commented out jquery in the Gemfile. I hate self inflicted wounds. Thanks for your response. On Friday, September 7, 2012 10:40:05 PM UTC-4, JavierQQ wrote: Can you post the content of

Re: [Rails] A Question about Model and Database?

2012-09-07 Thread ANIKET KADAM
please help me On Sat, Sep 8, 2012 at 2:38 AM, ACK aniketkadam1...@gmail.com wrote: hi i m new to rails i need to know the = which is the best way to create Database table in Rails? 1) *rails generate model User name:string email:string* this will create a migration file with something

Re: [Rails] A Question about Model and Database?

2012-09-07 Thread Javier Quarite
Rails is smart enough to determine if you want to create or drop a table if you have done the migration with change def change #code here end it only depends on how you write the commands if you do rake db:migrate then it will create the db (if the code inside change is about it) and if you

[Rails] Discussion about the performance of auto-expiring cache fragments

2012-09-07 Thread bricker
This was sparked by this post by DHH: http://37signals.com/svn/posts/3113-how-key-based-cache-expiration-works At first I was excited to read about a new method I hadn't seen before, ActiveRecord's `cache_key`. It seemed like I was going to restructure our entire cache strategy to take