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
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
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:
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
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
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
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
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
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
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
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
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:
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
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?
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|
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 =
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
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
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
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
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
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
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
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
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 =
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
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
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
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
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
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
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
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
33 matches
Mail list logo