Re: [Rails] Select and inner join

2013-02-16 Thread Art Taylor
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

[Rails] Re: how to debug rubny on rails application on aptana 3 studio

2013-02-16 Thread Sangram Ray
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,

[Rails] Re: Trying to show 3 tables in 1 view

2013-02-16 Thread Jax
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

[Rails] Redirecting without Plugins

2013-02-16 Thread Ryo Saeba
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

Re: [Rails] Redirecting without Plugins

2013-02-16 Thread tamouse mailing lists
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

[Rails] What is Rails fixing versions in Gemfile?

2013-02-16 Thread Slava Vishnyakov
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

Re: [Rails] What is Rails fixing versions in Gemfile?

2013-02-16 Thread Jordon Bedwell
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

Re: [Rails] structured data without database?

2013-02-16 Thread Hassan Schroeder
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

[Rails] Fwd: Twitter bootstrap rails gem not working in production mode

2013-02-16 Thread Loganathan Sellapa
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

[Rails] Suggestions for my first serious Ruby on Rails project

2013-02-16 Thread Jason Hsu, Android developer
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

Re: [Rails] Suggestions for my first serious Ruby on Rails project

2013-02-16 Thread Norm Scherer
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

Re: [Rails] Fwd: Twitter bootstrap rails gem not working in production mode

2013-02-16 Thread saikiran mothe
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

Re: [Rails] Fwd: Twitter bootstrap rails gem not working in production mode

2013-02-16 Thread Loganathan Sellapa
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:

Re: [Rails] Suggestions for my first serious Ruby on Rails project

2013-02-16 Thread Jason Hsu, Android developer
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

[Rails] Rails “no such file to load — rubygems (LoadError)”

2013-02-16 Thread yellowreign
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