You probably want #pluck:
http://api.rubyonrails.org/classes/ActiveRecord/Calculations.html#method-i-pluck
-a.
On 15 Feb 2013, at 5:05 AM, Lorenz Blackbird li...@ruby-forum.com wrote:
I have a many-to-many relationship in my course model in this way:
has_many :course_paragraphs
has_many
ruby -r debug file.rb at the console
--
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 rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group,
It worked a treat! thanks a million!
Jax
On Friday, February 15, 2013 9:52:44 AM UTC, Ruby-Forum.com User wrote:
In the index view of team write the code of index view of player and
select only the team players by @team.player:
table
tr
thName/th
thPosition/th
I want to be redirected to the current page, after having logged in. I
searched google and only saw ways to do this using certain plugins like
devise.
Isn't there a simple Way to implement this path?
I start out with
def store_location
session[:return_to] = request.fullpath
end
and I
On Sat, Feb 16, 2013 at 8:52 AM, Ryo Saeba li...@ruby-forum.com wrote:
I want to be redirected to the current page, after having logged in. I
searched google and only saw ways to do this using certain plugins like
devise.
Isn't there a simple Way to implement this path?
I start out with
Hello,
I'd like to ask why is Rails fixing it's version, like gem 'rails',
'3.2.12' ?
Given the recent attacks on Rails - wouldn't it be more secure to not fix
the version?
Maybe have something like '~3.2.12' ?
--
You received this message because you are subscribed to the Google Groups
On 02/16/2013 07:07 AM, Slava Vishnyakov wrote:
I'd like to ask why is Rails fixing it's version, like gem 'rails', '3.2.12' ?
Given the recent attacks on Rails - wouldn't it be more secure to not fix the
version?
Maybe have something like '~3.2.12' ?
While I agree, I don't see a valid
On Fri, Feb 15, 2013 at 6:13 PM, xscr...@gmail.com xscr...@gmail.com wrote:
I am building a small website. I want to have a scrolling window of news
headlines, where you click on the headline and a page with a copy of the
press release get s displayed.
I don't want to run a db, so is there
Hi All,
I am using 'twitter-bootstrap-rails' in my rails app where I can run the
application with bootstrap provided css successfully in development mode
but the css is not taking effect in production mode, I hope something I am
missing with the asset precompile. Copied below my gem file for y
o
My first serious Ruby on Rails project will automatically display
information on the ETFs and mutual funds with the lowest price/book and
price/cash flow ratios and also provide other essential information for
value investors like the expense ratio, the annual portfolio turnover rate,
and the
On 02/16/2013 05:48 PM, Jason Hsu, Android developer wrote:
My first serious Ruby on Rails project will automatically display
information on the ETFs and mutual funds with the lowest price/book
and price/cash flow ratios and also provide other essential
information for value investors like the
RAILS_ENV=production bundle exec rake assets:precompile
Try pre compile assets before depolying !
Thanks,
Sai Kiran M
On Sun, Feb 17, 2013 at 3:32 AM, Loganathan Sellapa loganathan...@gmail.com
wrote:
Hi All,
I am using 'twitter-bootstrap-rails' in my rails app where I can run the
Hi Sai Kiran,
I am running application in production only after precompiling the assets.
regards,
Loganathan
Mob: +91 7760780741 | +91 9944414388
Skype: loganathan.sellappa
ViewMe http://vizualize.me/loganathan
On Sun, Feb 17, 2013 at 10:38 AM, saikiran mothe
saikiran.mo...@gmail.comwrote:
On Saturday, February 16, 2013 8:52:54 PM UTC-6, Norm wrote:
My inclination would be to have a seperate task (cron job maybe) that
scraped the data and put it into the database. I would then have the
rails web site just calculate any needed factors from the data in the
database and sort
I recently moved my app from Heroku to a Linux instance using Amazon's EC2
- my first experience on Linux. I used Amazon's Elastic Beanstalk service
which is support set up the Linux server to run Ruby on Rails. However,
when I get into my app's directory and try to run rake commands, I get
15 matches
Mail list logo