[Rails] Re: Help with Nested Associations Hash in ActiveRecord query

2012-01-05 Thread loominator1970
Awesome, thanks for the help, i appreciate it! Dave On Jan 5, 3:05 pm, Craig White wrote: > On Jan 5, 2012, at 2:27 PM, loominator1970 wrote: > > > > > > > > > > > Hello, > > > Perhaps someone knows the answer to this one, because its been > >

[Rails] Help with Nested Associations Hash in ActiveRecord query

2012-01-05 Thread loominator1970
Hello, Perhaps someone knows the answer to this one, because its been stumping me for a long time. BTW, i'm still using rails 3.0.0, perhaps this issue is solved in a recent release. Here are my Models class Team < ActiveRecord::Base has_many :players end class Player < ActiveRecord:

[Rails] Re: form_tag not passing a js call in Rails3

2010-12-16 Thread loominator1970
: > > I use <%= javascript_include_tag :default %> with :default defined as > >     config.action_view.javascript_expansions[:defaults] = > %w(jquery.min rails jquery-ui.min) > > in my application.rb file. > > HTH, > Dan > > On Dec 16, 3:07 pm, loominator197

[Rails] Re: form_tag not passing a js call in Rails3

2010-12-16 Thread loominator1970
ving a failure in JS > that's causing grief.  Also -- check your console in Firebug (or > whatever you're using) and see if errors are being thrown when the > page loads. > > On Dec 16, 1:19 am, loominator1970 wrote: > > > > > > > > > Yep

[Rails] Re: form_tag not passing a js call in Rails3

2010-12-15 Thread loominator1970
wrote: > On Dec 16, 2010, at 12:48 AM, loominator1970 wrote: > > > Yes I am, here's what I have in the application.html.erb view, and > > they are all in my javascript folder > > > <%= javascript_include_tag 'jquery-1.4.3.js', 'rails', &#x

[Rails] Re: form_tag not passing a js call in Rails3

2010-12-15 Thread loominator1970
Yes I am, here's what I have in the application.html.erb view, and they are all in my javascript folder <%= javascript_include_tag 'jquery-1.4.3.js', 'rails', 'application' %> On Dec 15, 10:30 pm, Ray Parker wrote: > Are you including rails.js? &g

[Rails] form_tag not passing a js call in Rails3

2010-12-15 Thread loominator1970
This seems like it should be pretty straightforward, but its stumping me. I have a small form that I am trying to submit using jquery that is supposed to remove an association between to HABTM models. For the sake of argument, the models are Course and Student. # view <%= form_tag ( remove_

[Rails] Re: button_to confirm not working

2010-11-28 Thread loominator1970
Thanks for all the input, turns out I didn't have my javascript ducks in a row, since I'm a JS newb. I'm going with an all jquery solution, and I needed to do the following things: # in the layouts/application.html.erb # remove the line <%= javascript_include_tag :defaults %> # and add <%= j

[Rails] Re: button_to confirm not working

2010-11-17 Thread loominator1970
Actually, its C. "I'm a dumba$$ and didn't read your question carefully enough :)" Javascript IS turned on in my browser and enabled in my app. I will follow you suggestion and try that route. Thanks for the help! On Nov 17, 2:56 pm, Colin Law wrote: > On 17 November 201

[Rails] Re: button_to confirm not working

2010-11-17 Thread loominator1970
> Is JavaScript turned on in your browser? Yes, I have jQuery and protoype enabled in the application.html.erb page. -- 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-t...@googlegroups.com.

[Rails] button_to confirm not working

2010-11-17 Thread loominator1970
Hello, I'm using the 'button_to' helper in the following syntax: <%= button_to "Delete", { :action => "destroy", :id => user.id }, :confirm => "Are you sure?", :method => :delete, :class => 'submitLink' %> However, the confirmation is not working, its going straight to the destroy ac

[Rails] Can't run rake with rails3.0.0beta4- problem with bundler, i think....

2010-06-13 Thread loominator1970
Hello, Anyone else running into this same problem? I've come across some posts on the subject, but none have helped Installed: rails 3.0.0beta4 bundler 0.9.26 ruby 1.9.1 rake 0.8.7 After creating an initial rails app, then attempting to run the migration i get this > rake db:migrate > /usr/loc

[Rails] uninitialized constant error - Using unconventional table names

2009-02-06 Thread loominator1970
Hello, I'm having some trouble with an association between two tables in my RoR site. It looks like Rails is attempting to truncate the name of my model so that it can fit the normal model conventions. Any idea how I can override this? The error: uninitialized constant Project::ProjectProgres