[Rails] Different Order by clause on will_paginate pages?

2011-10-26 Thread Hussam Ali
Hi im trying to list random records on first page and from 2nd page to onwards, i need to show records by created_at using will_paginate plugin but i can only apply one of these condition at a time. Im showing based on order clause e,g Order('RAND()') or Order('created_at Desc') And then

[Rails] Question about db

2011-10-26 Thread pololo pololo
Hello world, I'm new in this forum. Is it possible to sqlite and mysql coexists in same RoR app? I want to extend functionalities to an app making queries toa mysql server and I'm not sure if I can do it. Thanks a lot, P -- Posted via http://www.ruby-forum.com/. -- You received this

Re: [Rails] Social Networking

2011-10-26 Thread Everaldo Gomes
Hi! Two or three months ago someone announced social stream in the list: https://github.com/ging/social_stream On Wed, Oct 26, 2011 at 2:55 AM, kausik bakshi kausi...@gmail.com wrote: On Fri, Jun 24, 2011 at 11:22 PM, exelstu...@gmail.com exelstu...@gmail.com wrote: Try some of these:

Re: [Rails] Social Networking

2011-10-26 Thread thiagocifani
Hello everaldo, this is a promising project! its really great! I think I will use it someday! I loved it! 2011/10/26 Everaldo Gomes everaldo.go...@gmail.com Hi! Two or three months ago someone announced social stream in the list: https://github.com/ging/social_stream On Wed, Oct 26, 2011

[Rails] How do I install ruby on rails on Windows 7

2011-10-26 Thread plink
I'm a newb to programming. I heard about ruby on rails from some web design friends. I've been reading different Why's (poigrant) guide to ruby and Finished Rails for Zombie in code school. I've download ruby 1.9.2 for window, but not sure what other software i need to get started. -- You

[Rails] Re: Help! Beginner Trying Test Driven Development.

2011-10-26 Thread tankard
class Team ActiveRecord::Base has_and_belongs_to_many :teams validates_presence_of :name end I suppose you mean :users instead of :teams On Oct 24, 8:12 am, Loff Stoff li...@ruby-forum.com wrote: I'm new to unit testing and Rails in general.  I've decided to build my projects in a TDD

[Rails] Re: Different Order by clause on will_paginate pages?

2011-10-26 Thread Frederick Cheung
On Oct 26, 10:25 am, Hussam Ali li...@ruby-forum.com wrote: Hi im trying to list random records on first page and from 2nd page to onwards, i need to show records by created_at using will_paginate plugin but i can only apply one of these condition at a time. Im showing based on order clause

Re: [Rails] How do I install ruby on rails on Windows 7

2011-10-26 Thread Everaldo Gomes
Hi! Try http://railsinstaller.org/ Best Regards, Everaldo On Wed, Oct 26, 2011 at 4:32 AM, plink p.pl...@gmail.com wrote: I'm a newb to programming. I heard about ruby on rails from some web design friends. I've been reading different Why's (poigrant) guide to ruby and Finished Rails for

Re: [Rails] Question about db

2011-10-26 Thread Walter Lee Davis
On Oct 26, 2011, at 6:45 AM, pololo pololo wrote: Hello world, I'm new in this forum. Is it possible to sqlite and mysql coexists in same RoR app? Individual models can be mapped to entirely different databases (running under different engines). More commonly, different applications are

[Rails] Re: Question about db

2011-10-26 Thread pololo pololo
Hi Walter, Thanks a lot for your answer, Walter Davis wrote in post #1028584: On Oct 26, 2011, at 6:45 AM, pololo pololo wrote: Hello world, I'm new in this forum. Is it possible to sqlite and mysql coexists in same RoR app? Individual models can be mapped to entirely different databases

[Rails] Re: taking oDesk test

2011-10-26 Thread anonymous odesk tester
bump up! -- 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 post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to

[Rails] Overriding number_to_human (Rails 3.0.5)

2011-10-26 Thread cipher_neo
I encountered a problem today, in that the number_to_human helper has a defect where it spits out an error when passed any number bigger than 0 and less than 1. eg number_to_human(0.2) gives nil can't be coerced into fixnum So, I found this patch:

Re: [Rails] Looking for the best tutorials for setting up a message board and wiki

2011-10-26 Thread Ralph Shnelvar
Monday, October 24, 2011, 7:04:05 PM, you wrote: JHMSL I'm interested in setting up a web site consisting of a message board JHMSL and wiki. (It will be about how to start and run a Linux distro or JHMSL other open source project.) JHMSL I'm new to Ruby on Rails. Before I started learning Ruby

Re: [Rails] Re: Question about db

2011-10-26 Thread Walter Lee Davis
On Oct 26, 2011, at 9:15 AM, pololo pololo wrote: Hi Walter, Thanks a lot for your answer, Walter Davis wrote in post #1028584: On Oct 26, 2011, at 6:45 AM, pololo pololo wrote: Hello world, I'm new in this forum. Is it possible to sqlite and mysql coexists in same RoR app?

[Rails] find_each(:include = ) the association never loads

2011-10-26 Thread Allan Dixon
I have two models class User has_one :entry end class Entry belongs_to: user end in my controller I use find_each to iterate over entries to email each of the users. Entry.find_each(:include = :user, :conditions = {:approved = true}) do |entry|

Re: [Rails] find_each(:include = ) the association never loads

2011-10-26 Thread Colin Law
On 26 October 2011 14:50, Allan Dixon al...@buttrr.com wrote: I have two models class User  has_one :entry end class Entry  belongs_to: user end in my controller I use find_each to iterate over entries to email each of the users.    Entry.find_each(:include = :user, :conditions =

[Rails] Help wanted: pg vs. postgres-pr gems

2011-10-26 Thread Frédéric Champreux
Hi all, I installed Rails 3.0 + PostgreSQL 8.4. Installed the gem postgre-pr I added gem 'postgres-pr' to my Gemfile I defined my database.yml with: # PostgreSQL 8.4 development: adapter: postgresql encoding: unicode database: testdb pool: 5 username: test password: ** I run

Re: [Rails] Help wanted: pg vs. postgres-pr gems

2011-10-26 Thread botp
2011/10/26 Frédéric Champreux li...@ruby-forum.com: no such file to load -- pg gem install pg -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from

[Rails] Add an index to a form

2011-10-26 Thread JavierQQ
Hello, I'm having some trouble with forms, my app allows to enter data by using a multi-step form that has 7 steps. There are 3 steps that may let the user to add 1 form, for example there's a step called children and that children has the following fields: * name * age * gender but one

Re: [Rails] Add an index to a form

2011-10-26 Thread Walter Lee Davis
On Oct 26, 2011, at 11:53 AM, JavierQQ wrote: Hello, I'm having some trouble with forms, my app allows to enter data by using a multi-step form that has 7 steps. There are 3 steps that may let the user to add 1 form, for example there's a step called children and that children has the

Re: [Rails] Add an index to a form

2011-10-26 Thread Colin Law
On 26 October 2011 16:53, JavierQQ jquari...@gmail.com wrote: Hello, I'm having some trouble with forms, my app allows to enter data by using a multi-step form that has 7 steps. There are 3 steps that may let the user to add 1 form, for example there's a step called children and that

Re: [Rails] Add an index to a form

2011-10-26 Thread Rob Biedenharn
On Oct 26, 2011, at 11:53 AM, JavierQQ wrote: Hello, I'm having some trouble with forms, my app allows to enter data by using a multi-step form that has 7 steps. There are 3 steps that may let the user to add 1 form, for example there's a step called children and that children has the

Re: [Rails] Add an index to a form

2011-10-26 Thread Javier Quarite
Thanks for your reply, I've seen that cast, but when I add another form for another children the HTML shows this input id=user_children_attributes_0_name maxlength=255 name=user[children_attributes][0][name] type=text so it's not increasing and it will only save the first child and now I'm

[Rails] Re: find_each(:include = ) the association never loads

2011-10-26 Thread Allan D.
Thanks, But no luck, I checked all the users and entries, they all match up with id's and are not null. I then proceeded to delete all but one entry/user. They are both associated but still it never gets the user object. I put attr_accessible :user_id, :user on the entry table. But still no

[Rails] Re: Add an index to a form

2011-10-26 Thread JavierQQ
In the casts I've seen this div id=tasks %= render :partial = 'task', :collection = @project.tasks % /div so as far as I understand theres a file _task.html.erb, but they create tasks by building it in the controller should I do something like that?, I mean %= render children, :collection =

Re: [Rails] Add an index to a form

2011-10-26 Thread Walter Lee Davis
On Oct 26, 2011, at 12:17 PM, Javier Quarite wrote: Thanks for your reply, I've seen that cast, but when I add another form for another children the HTML shows this input id=user_children_attributes_0_name maxlength=255 name=user[children_attributes][0][name] type=text so it's not

[Rails] My Ruby on Rails procedures and projects

2011-10-26 Thread Jason Hsu, Mr. Swift Linux
Check out the Ruby on Rails page on my web site at: http://jasonhsu.com/ror.html I've included my procedure for installing Ruby on Rails in Linux Mint Debian Edition. That's right, I'm no longer dependent on Ubuntu or Ubuntu-based Linux distros for developing Ruby on Rails applications. Linux

[Rails] MeetUp at UC Berkeley (Other People's Code) - Opensource and Coding

2011-10-26 Thread Danny!
Topic: Other People's Code | Best Practices + Developing apps from scratch is often unrealistic and finding other people's code to integrate into your application can often be much more time effective. We have an all star lineup of speakers from UC Berkeley, Citrix Online, and Mobile Developer

[Rails] Re: find_each(:include = ) the association never loads

2011-10-26 Thread Frederick Cheung
On Oct 26, 5:32 pm, Allan D. li...@ruby-forum.com wrote: Thanks, But no luck, I checked all the users and entries, they all match up with id's and are not null. I then proceeded to delete all but one entry/user. They are both associated but still it never gets the user object. I put

[Rails] Question about autocomplete

2011-10-26 Thread Bruno Meira
Hi guys, I'm new on RoR and I started to develop with this meta-framework on Aptana3. While I'm trying to improve my skills in Rails a question came to my head Is there any way to configure autocomplete of rails commands in Aptana3? Bruno Meira -- You received this message because you are

[Rails] Re: find_each(:include = ) the association never loads

2011-10-26 Thread Allan D.
Yes its Nil, nothing loads, Does it have something to do with Devise running as the authentication? I'm baffled why even a simple Entry.find(:include = :user) won't work either Frederick Cheung wrote in post #1028696: On Oct 26, 5:32pm, Allan D. li...@ruby-forum.com wrote: luck. I just

Re: [Rails] Question about autocomplete

2011-10-26 Thread Rajinder Yadav
On 11-10-26 05:25 PM, Bruno Meira wrote: Hi guys, I'm new on RoR and I started to develop with this meta-framework on Aptana3. While I'm trying to improve my skills in Rails a question came to my head Is there any way to configure autocomplete of rails commands in Aptana3? Bruno Meira

Re: [Rails] Help wanted: pg vs. postgres-pr gems

2011-10-26 Thread Rajinder Yadav
On 11-10-26 11:38 AM, Frédéric Champreux wrote: Hi all, I installed Rails 3.0 + PostgreSQL 8.4. Installed the gem postgre-pr I added gem 'postgres-pr' to my Gemfile I defined my database.yml with: # PostgreSQL 8.4 development: adapter: postgresql encoding: unicode database: testdb