[Rails] Re: undefined method `all' for MyModel:Module

2011-10-25 Thread tspore
Thank you very much for helping me think through this. Its a old project, where upgrading it is going to be a couple week process. On Oct 24, 11:44 pm, Frederick Cheung frederick.che...@gmail.com wrote: On Oct 24, 10:20 pm,tsporetsp...@gmail.com wrote: What I'm thinking is that my application

[Rails] Re: undefined method `all' for MyModel:Module

2011-10-24 Thread tspore
Right. MyModel - would be in Theory the AR model, but it seems to be erring out on the Helper. (Which it also has) So for some reason I have a few of the upgraded models, which I can't run basic querries against. But some which I can. However, I don't see anything which would not allow those

[Rails] Re: undefined method `all' for MyModel:Module

2011-10-24 Thread tspore
frederick.che...@gmail.com wrote: On Oct 24, 4:03 pm, tspore tsp...@gmail.com wrote: Right. MyModel - would be in Theory the AR model, but it seems to be erring out on the Helper. (Which it also has) So for some reason I have a few of the upgraded models, which I can't run basic querries

[Rails] undefined method `all' for MyModel:Module

2011-10-23 Thread tspore
/tspore/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/ httpserver.rb:111:in `service' /Users/tspore/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/ httpserver.rb:70:in `run' /Users/tspore/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/ server.rb:183:in `block in start_thread' Can

[Rails] Complex Active_record associations

2011-02-11 Thread tspore
So I have 3 models - Users, Roles, Records. For each record X user, can have 1 of 3 roles, and those roles will give different permissions on each record. So for example, user 1 - has a role of follower on record 5, also user 1 - is a manager(role) of record 4, etc. So what I am trying to do, is

[Rails] Re: Real-time web traffic alert notifications (email or SMS) on the cheap?

2011-02-11 Thread tspore
for a cheap simple monitor tool for a site that is up or down - http://monitor.rootinternet.co.uk/en/index.php On Feb 11, 10:53 am, Brian Morearty li...@ruby-forum.com wrote: I'm a big fan of New Relic. One of the services they provide is alerts when your traffic goes up unexpectedly above a

[Rails] Re: Rails3 Jquery link_to

2010-06-29 Thread tspore
Ok I think I figured out a simple version - $('#content').load('/clients #index'); Right now I have it in my index.js.erb but I need to now figure out how to load it into my controller, so I can reduce files. On Jun 28, 6:11 pm, tspore tsp...@gmail.com wrote: Ok I think I'm 1/2 their - I got

[Rails] Rails3 Jquery link_to

2010-06-28 Thread tspore
I know that I'm missing something very simple but I setup my application to use for the links a remote= true call. In the call it finds the js.erb file, but doesn't render into the browser the content. LOG: Started GET / for 127.0.0.1 at 2010-06-28 14:26:22 -0700 Processing by

[Rails] Re: Rails3 Jquery link_to

2010-06-28 Thread tspore
Ok I think I'm 1/2 their - I got something to load on the rjs template- $(#content).html(fish); Which renders html inside the content tag... But it just will render a plain tag for fish - not html code e.g. h1 fish/h1 But I think ideally it would render the same index.html.erb file so I wouldn't

[Rails] mysql + Snow Leopard + Rails

2009-10-04 Thread tspore
I am very interested to start playing with rails, but I have now spent a whole day trying to get it all working. Which is quite disheartening. My latest issues is from within ruby when I try to connect to the DB it says: rake aborted! Access denied for user But: 1. I use the same connection

[Rails] Re: mysql + Snow Leopard + Rails

2009-10-04 Thread tspore
Correct, I can connect to mysql with no issues, either via terminal, or using any php app to connect to my localhost. But I fixed it today - I need to put single quotes around the 'password' . I don't know if its because I have a Symbol in the password or not, but that was the solution. My