Re: [Rails] what's the deal with blank? function anyway?

2017-04-02 Thread fugee ohu
There's also jquery-validates.js On Sunday, April 2, 2017 at 10:40:50 AM UTC-4, Walter Lee Davis wrote: > > You seem to be comparing apples and oranges here. val() is from jQuery and > trim() is from JavaScript. #blank? is from Rails (not Ruby). Which one or > combination you might use are

[Rails] form_for(@address) in form controller says undefined local variable 'address_params'

2017-04-02 Thread fugee ohu
Something in my routes? I'm using nested resources resources :users do resources :addresses end -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: [Rails] jquery radio buttons

2017-04-02 Thread Walter Lee Davis
> On Apr 2, 2017, at 10:55 AM, fugee ohu wrote: > > The reason it didn't work is because rails actionview radio button helper > creates radio buttons which successfully relay info on form submission but > actually the html it renders leaves out a foward slash for the

Re: [Rails] jquery radio buttons

2017-04-02 Thread Colin Law
On 2 April 2017 at 15:58, fugee ohu wrote: > > > On Sunday, April 2, 2017 at 9:49:21 AM UTC-4, Colin Law wrote: >> >> On 2 April 2017 at 14:24, fugee ohu wrote: >> >>> >>> This isn't the place to post links to other forums Answer the question >>> or

Re: [Rails] jquery radio buttons

2017-04-02 Thread fugee ohu
On Sunday, April 2, 2017 at 9:49:21 AM UTC-4, Colin Law wrote: > > On 2 April 2017 at 14:24, fugee ohu > wrote: > >> >> This isn't the place to post links to other forums Answer the question >> or don't >> > > You would be more likely to get helpful answers if you ever

Re: [Rails] jquery radio buttons

2017-04-02 Thread fugee ohu
On Sunday, April 2, 2017 at 9:49:21 AM UTC-4, Colin Law wrote: > > On 2 April 2017 at 14:24, fugee ohu > wrote: > >> >> This isn't the place to post links to other forums Answer the question >> or don't >> > > You would be more likely to get helpful answers if you ever

Re: [Rails] what's the deal with blank? function anyway?

2017-04-02 Thread Walter Lee Davis
You seem to be comparing apples and oranges here. val() is from jQuery and trim() is from JavaScript. #blank? is from Rails (not Ruby). Which one or combination you might use are entirely up to you, and depend on your use-case. If you want to provide a convenience to your users, and are

Re: [Rails] jquery radio buttons

2017-04-02 Thread James Jelinek
Agreed. Politeness and kindness goes a long way. Sent from my iPhone > On Apr 2, 2017, at 8:48 AM, Colin Law wrote: > >> On 2 April 2017 at 14:24, fugee ohu wrote: >> >> This isn't the place to post links to other forums Answer the question or >>

Re: [Rails] jquery radio buttons

2017-04-02 Thread Colin Law
On 2 April 2017 at 14:24, fugee ohu wrote: > > This isn't the place to post links to other forums Answer the question > or don't > You would be more likely to get helpful answers if you ever said thanks when people here do help you. For example your post with subject

Re: [Rails] jquery radio buttons

2017-04-02 Thread fugee ohu
On Sunday, April 2, 2017 at 6:27:03 AM UTC-4, Robert O'Connor wrote: > > Looks like this answers your question: http://stackoverflow.com/a/7031408 > > On 04/02/2017 06:25 AM, Robby O'Connor wrote: > > http://api.jquery.com/checkbox-selector/ > > > > On 04/02/2017 01:24 AM, fugee ohu wrote:

Re: [Rails] jquery radio buttons

2017-04-02 Thread Robby O'Connor
Looks like this answers your question: http://stackoverflow.com/a/7031408 On 04/02/2017 06:25 AM, Robby O'Connor wrote: > http://api.jquery.com/checkbox-selector/ > > On 04/02/2017 01:24 AM, fugee ohu wrote: >> Can I treat radio buttons the same as other fields in my form for the >> purposes of

Re: [Rails] jquery radio buttons

2017-04-02 Thread Robby O'Connor
http://api.jquery.com/checkbox-selector/ On 04/02/2017 01:24 AM, fugee ohu wrote: > Can I treat radio buttons the same as other fields in my form for the > purposes of jquery script > Can I use > $("#example").change(function(e) > if (e.target.value=='Yes') > ... > > Or do I have to use a