Re: [Rails] ajax, erb, uri, query string

2012-07-10 Thread Javier Quarite
On Tue, Jul 10, 2012 at 4:42 PM, Scott Ribe wrote: > Is there a cleaner way to build the url in the following snippet? > > $(function() { > $('#name').change(function() { > $.ajax({ > url: "<%= url_for({action: 'lookup'}) %>" + "?term=" + this.value, > ... > } > }) >

[Rails] ajax, erb, uri, query string

2012-07-10 Thread Scott Ribe
Is there a cleaner way to build the url in the following snippet? $(function() { $('#name').change(function() { $.ajax({ url: "<%= url_for({action: 'lookup'}) %>" + "?term=" + this.value, ... } }) }) }) Note that I should not use a hard-coded URL, because this app

Re: [Rails] passenger not installing

2012-07-10 Thread Colin Law
On 10 July 2012 17:45, Sonu Joshi wrote: > C:\>gem install 'passenger' > ERROR: Error installing passenger: > The 'fastthread' native gem requires installed build tools. Does passenger work with Windows? I cannot find any suggestions that it does. Colin > > Please update your PATH to

[Rails] passenger not installing

2012-07-10 Thread Sonu Joshi
C:\>gem install 'passenger' ERROR: Error installing passenger: The 'fastthread' native gem requires installed build tools. Please update your PATH to include build tools or download the DevKit from 'http://rubyinstaller.org/downloads' and follow the instructions at 'http://github.com/onec

[Rails] Re: Controller Models

2012-07-10 Thread Jean-Sébastien D.
Thanks it works, it just get confusing with the singular and plurial -- 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 un

[Rails] Re: Controller Models

2012-07-10 Thread Rick
Rails uses four naming conventions for throughout it's code which need to be followed by the developer (you) for their code to fit with Rails. These involve selective use or* singular* and *plural *together with *camelize*and *underscore*. The simplest way to demonstrate the conventional use i

[Rails] Re: has_many association with autosave issues

2012-07-10 Thread Matt Jones
On Monday, 9 July 2012 20:37:32 UTC-4, bubbler wrote: > > I'd like to use autosave => true for an association for its added > benefits: the parent doesn't save unless the children saves. However, it > seems to skip validations when saving the children. And this seems to be > the case since t

[Rails] Ruby on Rails Devs (f/m) in BERLIN, Germany

2012-07-10 Thread Wimdu GmbH
Slashdot reader? Do you go shopping and think OOP? Do you dream of big data? Is GitHub the first thing you think of when someone says the word fork. Wimdu is an exciting, new start-up company headquartered in Berlin and one of the biggest Ruby projects in Europe. We are all about tdd/bdd. Initial