[Rails] Re: before_validate refactor question

2013-09-04 Thread Michael Lutsiuk
before_validation :capitalize_first_words def capitalize_first_words [:question, :correct_ans_1, :correct_ans_2, :correct_ans_3].each do |key| self.key = key.to_s.gsub(/^(\W*?[a-z])/) { |m| m.upcase } if !key.to_s.blank? end end Note the difference betweet

[Rails] Fetching links to my rails app

2013-09-04 Thread Ruby Rails
I am new to RoR and i want to fetch some links from some other websites to my rails app. How can i do so? -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To unsubscribe from this group and stop receiving emails from it, send an email to

[Rails][ANN] Rapidfire 1.2.0 - Dynamic surveys in your rails app

2013-09-04 Thread Yuva
hi, A new version of rapidfire gem (v1.2.0) is released Rapidfire gem makes adding dynamic surveys very easy in your rails application. source: https://github.com/code-mancers/rapidfire docs: http://rdoc.info/gems/rapidfire/frames demo: https://rapidfire.herokuapp.com Changes

[Rails] Re: Fetching links to my rails app

2013-09-04 Thread Joel Pearson
Do you mean you want to link to other sites, or you want to download and display pages / partials from other sites inside your app? -- 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 unsubscribe

[Rails] Re: before_validate refactor question

2013-09-04 Thread Dave Castellano
But, even the following causes error: undefined method `key=' for #Question:0x007fcba5972f20 before_validation :capitalize_first_words def capitalize_first_words [:question, :correct_ans_1, :correct_ans_2].each do|key| self.key = x end end key is still not being

Re: [Rails] before_validate refactor question

2013-09-04 Thread Walter Lee Davis
On Sep 4, 2013, at 8:17 AM, Dave Castellano wrote: But, even the following causes error: undefined method `key=' for #Question:0x007fcba5972f20 before_validation :capitalize_first_words def capitalize_first_words [:question, :correct_ans_1, :correct_ans_2].each do|key|

[Rails] Re: before_validate refactor question

2013-09-04 Thread Michael Lutsiuk
Instance of Question doesn't have attribute key. If this is ActiveRecord, you maybe should make migration add_column :questions, :key, :string, OR within class scope write attr_accessor :key среда, 4 сентября 2013 г., 15:17:47 UTC+3 пользователь Ruby-Forum.com User написал: But, even the

[Rails] Shift from mongrel to webrick

2013-09-04 Thread honey ruby
Hi Everyone I have installed mongrel gem and in my dev I can able to run my app on mongrel but If I want to shift to webrick how can I shift easily with out uninstalling the mongrel gem Thanks in advance -- You received this message because you are subscribed to the Google Groups Ruby on

[Rails] Re: Unable to rake db:create

2013-09-04 Thread pvvsmk p.
Thanks to you all. rajeevsharma and others Finally it was worked... :D rake db:migrate --trace and utf-8 was working for me to get out from the error... i successfully installed ruby193 in my windows8 and connected it with mysql5.6 Thanks to every body if any one need the

Re: [Rails] Shift from mongrel to webrick

2013-09-04 Thread Jordon Bedwell
On Wed, Sep 4, 2013 at 9:01 AM, honey ruby emailtohoneyr...@gmail.com wrote: I have installed mongrel gem and in my dev I can able to run my app on mongrel but If I want to shift to webrick how can I shift easily with out uninstalling the mongrel gem That depends on how you have mongrel

Re: [Rails] Shift from mongrel to webrick

2013-09-04 Thread Hassan Schroeder
On Wed, Sep 4, 2013 at 7:21 AM, honey ruby emailtohoneyr...@gmail.com wrote: do we have any other way to shift the to shift from mongrel to webrick Let's see: I have a command `rails server` and I wonder if there are command options. Oh, how about I try `rails server --help` ... -- Hassan

Re: [Rails] Shift from mongrel to webrick

2013-09-04 Thread honey ruby
Thanks Jordon for your quick response I agree with you but I want to know is do we have any other way to shift the to shift from mongrel to webrick with out uninstall the mongrel gem. If we uninstall the gem rails will pick webrick by default I knew that. Wanna know is there any other alternative

Re: [Rails] Shift from mongrel to webrick

2013-09-04 Thread Jordon Bedwell
On Wed, Sep 4, 2013 at 9:21 AM, honey ruby emailtohoneyr...@gmail.com wrote: Thanks Jordon for your quick response I agree with you but I want to know is do we have any other way to shift the to shift from mongrel to webrick with out uninstall the mongrel gem. If we uninstall the gem rails will

Re: [Rails] Shift from mongrel to webrick

2013-09-04 Thread honey ruby
Thanks Jordon it worked. On Wed, Sep 4, 2013 at 8:01 PM, Jordon Bedwell envyge...@gmail.com wrote: On Wed, Sep 4, 2013 at 9:21 AM, honey ruby emailtohoneyr...@gmail.com wrote: Thanks Jordon for your quick response I agree with you but I want to know is do we have any other way to shift

Re: [Rails] Shift from mongrel to webrick

2013-09-04 Thread honey ruby
I need some good tutorials to learn rails3 with detail any suggestions plz... On Wed, Sep 4, 2013 at 8:26 PM, honey ruby emailtohoneyr...@gmail.comwrote: Thanks Jordon it worked. On Wed, Sep 4, 2013 at 8:01 PM, Jordon Bedwell envyge...@gmail.comwrote: On Wed, Sep 4, 2013 at 9:21 AM, honey

Re: [Rails] Re: Mailing Error

2013-09-04 Thread Norbert Melzer
Have you activated SMTP access in your gmail preferences? Am 04.09.2013 07:11 schrieb Avi aavinash.beh...@gmail.com: This is my configuration :- config.action_mailer.default_url_options = { :host = 'localhost:3000' } config.action_mailer.delivery_method = :smtp

Re: [Rails] Shift from mongrel to webrick

2013-09-04 Thread Colin Law
On 4 September 2013 16:01, honey ruby emailtohoneyr...@gmail.com wrote: I need some good tutorials to learn rails3 with detail any suggestions As always, railstutorial.org which is free to use online, though I see this was suggested to you (by myself and others) in August 2012, February 2012,

[Rails] Re: before_validate refactor question

2013-09-04 Thread Dave Castellano
Michael Aleksandrovich wrote in post #1120644: Instance of Question doesn't have attribute key. If this is ActiveRecord, you maybe should make migration add_column :questions, :key, :string, OR within class scope write attr_accessor :key , 4 2013 ., 15:17:47 UTC+3 Ruby-Forum.com User : I

Re: [Rails] Speed up image processing of Paperclip in Acceptance Tests

2013-09-04 Thread Tamara Temple
On Sep 4, 2013, at 12:41 AM, Ryan ryancheung...@gmail.com wrote: Hi All, I have a question here: How to Speed up image processing of Paperclip in Acceptance Tests When running capybara feature specs I can see lots of Slow factory notices which are populated byfactory_girl. These Slow

[Rails] heroku reacher 5 free apps showing varify your account message

2013-09-04 Thread mukul saharia
hello developers, i am using heroku free account and i have deployed some apps. now when i create a new app with create heroku command. is shows a message you reached limit of 5 free apps plz varify your account. what is this. and how to resolve the problem. thanx in advance -- You received

Re: [Rails] heroku reacher 5 free apps showing varify your account message

2013-09-04 Thread Dheeraj Kumar
Why don't you try reading their documentation? It's there for a reason. https://devcenter.heroku.com/categories/billing https://devcenter.heroku.com/articles/account-verification -- Dheeraj Kumar On Thursday 5 September 2013 at 10:46 AM, mukul saharia wrote: hello developers, i am using

[Rails] hw to create binary tree structure in rails

2013-09-04 Thread mukul saharia
hello friends, i want to create a binary tree structure in railsapps.it there any gem or any other technique. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To unsubscribe from this group and stop receiving emails from it, send an email

Re: [Rails] hw to create binary tree structure in rails

2013-09-04 Thread Himanshu Prakash
Try this- http://rubytree.rubyforge.org/rdoc/index.html On Thu, Sep 5, 2013 at 10:53 AM, mukul saharia mukul.saha...@gmail.comwrote: hello friends, i want to create a binary tree structure in railsapps.it there any gem or any other technique. -- You received this message because you are

[Rails] http://www.digitalpoin8.com

2013-09-04 Thread Sara T.
Thank you Walter Lee Davis.I am developing the Web Services, I will definitely take suggestions from you guys. thank you -- 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 unsubscribe from this

Re: [Rails] linkedin gem

2013-09-04 Thread Rekha Benada
On Monday, September 2, 2013 4:30:37 AM UTC-7, Colin Law wrote: On 2 September 2013 12:16, Rekha Benada rekhu...@gmail.com javascript: wrote: My routes.rb is same as in this tutorial. Here it is Please don't top post, it makes it difficult to follow the thread. Insert your reply