[Rails] Re: facebook integration in rais app?

2008-10-20 Thread Michael Sofaer
Look at the Facebooker plugin On Oct 20, 5:03 am, Ravi Katta [EMAIL PROTECTED] wrote: Hi,    How can we integrate/push rails application onto facebook(social networking) site.    please guide me on this.   thanks,   Ravi. -- Posted viahttp://www.ruby-forum.com/.

[Rails] Re: rails API best practices

2008-10-09 Thread Michael Sofaer
If you haven't read the docs for ActiveResource, I'd start there. On Oct 9, 4:14 pm, Marcelo Barbudas [EMAIL PROTECTED] wrote: Hi, Is there a book or screencast or documentation that provides best practices for creating an API for a RoR application? I have to build an API from scratch and

[Rails] Re: Memory leak problem

2008-10-08 Thread Michael Sofaer
Probably not related, but should business.save at the end there be @business.save? On Oct 8, 9:39 am, elioncho [EMAIL PROTECTED] wrote: I have a txt file with some data that i need to import to de database. I'm using ruby to import those data but i have a major problem, when i 've a large

[Rails] Re: a small doublt

2008-10-08 Thread Michael Sofaer
Yes, mongrel_cluster is the way to go if you want to handle multiple concurrent requests. I recommend nginx over Apache for load balancing them, if you have the choice. Threading is indeed hard, but it helps immensely with scaling problems. That being said, Ruby threading is not very good at

[Rails] Re: the performance debate

2008-10-08 Thread Michael Sofaer
Ruby in general is one of the easiest languages to code in that I've ever seen. It also makes it easy to use lambdas in a much more natural fashion than I've seen before. Rails is the simplest and easiest framework I've seen for building web applications. No one chooses Ruby (or Rails) because

[Rails] has_many_through with conditions on another table (:joins)

2008-10-06 Thread Michael Sofaer
Hi, I have an class that looks like this: class Section ActiveRecord::Base belongs_to :offering, :foreign_key = :parent_id has_many :memberships, :as = :member_of has_many :students, :through = :memberships, :source = :user, :joins = inner join roles onmemberships.role_id =

[Rails] Re: has_many_through with conditions on another table (:joins)

2008-10-06 Thread Michael Sofaer
Correction: I made the change to :create_has_many_reflection If there is no reason not to allow the :join keyword, what is the best way to make the change? I'd prefer not to freeze Rails, but I'm having a lot of trouble targeting just this method with a plugin.