[Rails] Should includes work with a query that returns the same object more than once?

2014-08-06 Thread Dave Schweisguth
My app has models Person, Photo, Comment. A Comment has_many Photos and a Photo has_many People. In the console, with a database with some data in it and the ActiveRecord logger sent to STDOUT ... First, to show what's in the data: irb(main):003:0

[Rails] Error after calling bundle install (Ruby on Rails installation) (Mac OS X)

2014-08-06 Thread Michael Sutyak
I am trying to initialize a rails application, and I am running into some issues. When running: rails new . -m https://raw.github.com/RailsApps/rails-composer/master/composer.rb I run into the issue: Could not find gem 'quiet_assets (= 0) ruby' in the gems available on this machine.Run

[Rails] undefined method `lessons_path'

2014-08-06 Thread Turcu Marius
Hi all! I'm new to Rails and i have some problems with this code. I have this form in a view of page controller %= form_for Lesson.new do % %= label_tag(:number, Enter the number) % %= text_field_tag :number % %= label_tag(:root, root) % %= text_field_tag :root % %=

Re: [Rails] Re: Session record not getting deleted

2014-08-06 Thread Colin Law
On 5 August 2014 23:05, Bharath Neo li...@ruby-forum.com wrote: Okie, assuming its done manually, is there a way to at least figure out which of the sessions are for logged out users ?? Delete it explicitly when a user logs out, then you know that any left are those that have not logged out.

Re: [Rails] Error after calling bundle install (Ruby on Rails installation) (Mac OS X)

2014-08-06 Thread Colin Law
On 5 August 2014 23:53, Michael Sutyak msut...@gmail.com wrote: I am trying to initialize a rails application, and I am running into some issues. When running: rails new . -m https://raw.github.com/RailsApps/rails-composer/master/composer.rb I run into the issue: Could not find gem

Re: [Rails] undefined method `lessons_path'

2014-08-06 Thread Colin Law
On 6 August 2014 07:39, Turcu Marius li...@ruby-forum.com wrote: Hi all! I'm new to Rails and i have some problems with this code. I have this form in a view of page controller %= form_for Lesson.new do % %= label_tag(:number, Enter the number) % %= text_field_tag :number % %=

[Rails] Re: undefined method `lessons_path'

2014-08-06 Thread Turcu Marius
Thanks, Colin.Yes, i know, i jumped in front of a train with this but must do this aplication...what must have in routes? now i have get 'lessons/add_lesson'And another question if i what to use this form in a view created by another controller how i make the connection? Thanks for your

[Rails] Merge multiple csv file into one file

2014-08-06 Thread Duong vong veasna
Dear all Developers, i want to create an app to merge multiple excel file into one file. i have try but i can not do it, any one could help me. thanks -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To unsubscribe from this group and

Re: [Rails] Merge multiple csv file into one file

2014-08-06 Thread Robby O'Connor
Have you tried googling? Have you looked on stackoverflow.com because this isn't exactly an uncommon problem...at all. --Rob Sent from my phone...excuse any typos please! On Aug 6, 2014 4:29 AM, Duong vong veasna veasnakhme...@gmail.com wrote: Dear all Developers, i want to create an app to

Re: [Rails] Re: undefined method `lessons_path'

2014-08-06 Thread Colin Law
On 6 August 2014 08:17, Turcu Marius li...@ruby-forum.com wrote: Thanks, Colin.Yes, i know, i jumped in front of a train with this but must do this aplication...what must have in routes? now i have get 'lessons/add_lesson'And another question if i what to use this form in a view created by

[Rails] Backup as a Service for Rails

2014-08-06 Thread Andrew Shaydurov
Hi. I'm glad to finally announce new service useful for all Rails developers. It gives a simple solution for making backups for Rails applications. Main features are: - Simple installation and configuration in just 3 minutes (no more Backup gem configs with dozens of lines of code) - Compression

[Rails] Issue in exporting checkbox values (in list) from view to controller

2014-08-06 Thread Victor Ab
Hello all, my skills in Ruby are very limited so sorry if my questions seem stupid. I've made some searchs on Google and made many tries but I still have problems. Hope you will able to help me. Here is the main goals of what I want to do: I open a page (view). On this page, some informations

Re: [Rails] Error after calling bundle install (Ruby on Rails installation) (Mac OS X)

2014-08-06 Thread Michael Sutyak
I'm pretty sure I installed everything required. What could be missing on Mac OS X? On Wednesday, August 6, 2014 12:01:53 AM UTC-7, Colin Law wrote: On 5 August 2014 23:53, Michael Sutyak msu...@gmail.com javascript: wrote: I am trying to initialize a rails application, and I am running

Re: [Rails] Error after calling bundle install (Ruby on Rails installation) (Mac OS X)

2014-08-06 Thread Eric Saupe
OSX doesn't have apt-get. You should use brew instead,http://stackoverflow.com/questions/19688424/why-is-apt-get-function-not-working-in-terminal-on-mac-osx-10-9, but this can occasionally have different installation instructions. Make sure you are installing MySQL correctly for Mac. On