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
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
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
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
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
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|
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
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
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
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
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
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
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
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
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
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
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,
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
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
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
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
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
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
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
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
25 matches
Mail list logo