search for: bjohnson

Displaying 20 results from an estimated 85 matches for "bjohnson".

Did you mean: johnson
2006 Jul 22
4
Accessing the controller name in your views?
...way than: <% if params[:controller] == "whatever" && params[:action] == "whatever" %>some html<% end %> I know in the controllers you can just use controller_name, but that is not provided in the views. Thanks for your help. Thank You, Ben Johnson E: bjohnson@contuitive.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060722/00d23b12/attachment.html
2006 Aug 02
7
ActiveRecord does not close database connections?
I have an application that creates quite a few threads. I keep getting the "mysql too many connections" error. ActiveRecord does not close the connection once a thread had died out. To make things worse mysql has a wait_timeout variable that would basically kill off these connections for me, but there is a bug and I can not change the value of it. I have tried at least 10 different
2006 Aug 18
3
Mysql::Error: Can''t create UNIX socket (24)
Any idea what this means? I have done many google searches and got nothing? Any help is greatly appreciated. -- Posted via http://www.ruby-forum.com/.
2006 Aug 06
3
Debugging a worker?
If there is an exception raised in my worker I rescue it and throw it into the log. This is decent, but it would really help to find out more information. Like the line number, the stack trace, etc. Is this possible? Thanks for your help. Thank You, Ben Johnson E: bjohnson at contuitive.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20060806/f1d4a33f/attachment.html
2006 Jul 17
4
how to invoke model methods in controller & vice versa
hello how to invoke model methods in controller & vice versa please explain with examples advance thanx -- Posted via http://www.ruby-forum.com/.
2006 Aug 01
4
Creating workers from workers?
Since MiddleMan is an uninitialized constant in a worker how do you create new workers inside a worker? Thank You, Ben Johnson E: bjohnson at contuitive.com O: 800-341-6826 M: 817-229-4258 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20060731/75a77fa6/attachment-0001.html
2006 Jul 11
1
Determine if attributes changed?
Is there a way to determine if attributes were changed? Let''s say in the before_save or after_save method? Thanks for your help. Thank You, Ben Johnson E: bjohnson@contuitive.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060711/442b20d2/attachment.html
2006 Aug 24
1
ActionMailer doesn''t work in backgroundrb
...ackgroundrb. Can anyone confirm this? Because when I try to do Notifier.deliver_some_method I get an error saying it cant find the templates for my email. The funny thing is that when I run script/ runner Notifier.deliver_some_method it works just fine. Any ideas? Thank You, Ben Johnson E: bjohnson at contuitive.com O: 800-341-6826 M: 817-229-4258 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20060824/9210b250/attachment.html
2006 Jul 31
1
Creating workers on server startup?
I have workers that need to be created when I run rake backgroundrb:start. Where do I put this code? Thanks for your help. Thank You, Ben Johnson E: bjohnson at contuitive.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20060731/d201c052/attachment.html
2006 Jul 31
1
delete_worker doesn''t kill the thread?
...the worker. After I did that the other console that was monitoring my log continued to add a line every 2 seconds, it didn''t stop. Am I missing something here or shouldn''t deleting a worker stop the loop and kill the thread? Thanks for your help. Thank You, Ben Johnson E: bjohnson at contuitive.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20060731/6d22b016/attachment.html
2006 Jul 19
1
How to add validation to in_place_editor
...end end The problem is that if there is an error that is rescued it sets that field to the output of the error. What I''d like it to do is pop up a little javascript window like it does if an exception goes uncaught. Any ideas? Thanks for your help. Thank You, Ben Johnson E: bjohnson@contuitive.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060719/94d7301f/attachment.html
2006 Jul 22
3
How to use variables in your layout views?
...3) %> Because I was under the impression that you really don''t want to do this in your views. You should do this in your controllers and pass the result to your views. But where do I do global actions like this in the controllers? Thanks for your help. Thank You, Ben Johnson E: bjohnson@contuitive.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060722/96651382/attachment.html
2006 Jul 20
9
Including children''s children?
a has many b''s b has many c''s results = A.find params[:id], :include => :b How do you also make sure the b''s include the c''s? Thanks for your help. Thank You, Ben Johnson E: bjohnson@contuitive.com O: 800-341-6826 M: 817-229-4258 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060720/1c277961/attachment.html
2006 Aug 19
7
Impossible to get stable?
...tarting transaction: #<ActiveRecord::StatementInvalid: Mysql::Error: MySQL server has gone away: What have you found to be most stable? Setting allow concurrency to false and just putting a Mutex.synchronize object around all database calls? Or setting it true? Thank You, Ben Johnson E: bjohnson at contuitive.com O: 800-341-6826 M: 817-229-4258 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20060818/d4bef568/attachment.html
2006 Jul 26
6
Javascript tooltips in rails?
Does rails have built in functionality to do javascript tooltips? -- Posted via http://www.ruby-forum.com/.
2006 Jul 23
6
Best way to sort the emails in a mailing list?
...ou''ve been involved with, you could move it to another folder. I''ve looked at the email headers and can''t find out a way to do this. It kind of sucks having to sift through 200 emails to find replies to my question. Thanks for the help. Thank You, Ben Johnson E: bjohnson@contuitive.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060723/3c80c581/attachment.html
2003 Feb 20
3
cupsaddsmb - why the heck can't I get rpcclient-addprinter to work?
I can't seem to get the rpcclient-addprinter to work - grrrrrr It looks like the drivers files are copied correctly and the NT drivers are added correctly but the addprinter command says it's unsuccessful! rpcclient localhost -N -U JOHNSON\\root -c 'enumprinters' shows the printer!! What's going on? I've tried removing /var/cache/samba/ntdrivers.tdb
2006 Jul 09
1
Drop down menu in rails?
Does rails have a nifty utility for creating javascript drop down menus? Thanks for the help. Thank You, Ben Johnson E: bjohnson@contuitive.com O: 800-341-6826 M: 817-229-4258 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060709/869e8e30/attachment-0001.html
2006 Jul 15
1
Is there a huge performance difference between using multiple periodically_call_remote functions or one?
...ons running at the same time. Is this bad for performance? Would it be better to call that function once and just pass it the view that I''m on and give back anything that the view needs? Basically merge these 3 function calls into one. Thanks for the help. Thank You, Ben Johnson E: bjohnson@contuitive.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060715/206f4259/attachment.html
2006 Jul 17
2
after_save deletes is an exception is raised?
...after_save in a model delete if an exception is raised in there? I simply did def after_save raise ''hmmm'' end and it raised the exception but there was nothing in the database. I removed that entire method and its in the database. Is this correct? Thank You, Ben Johnson E: bjohnson@contuitive.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060717/a4a9ba34/attachment.html