search for: helzer

Displaying 8 results from an estimated 8 matches for "helzer".

Did you mean: helper
2007 Dec 01
3
Rails 2 problem with compute_public_path
...def image_path(source) compute_public_path(source, ''images'') end def compute_public_path(source, dir, ext = nil, include_host = true) compute_public_path takes a minimus of one parameter, which is supplied by image_path. What am I doing wrong here? Thanks, Helzer --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send...
2007 Oct 03
2
Scroll to anchor from RJS
Is there an way to tell the browser to scroll to a certain anchor from an RJS template? I''m doing a page update, adding stuff at the bottom and want to browser to go there after it''s been added. Thanks, Helzer --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send...
2007 Sep 22
1
Howto customize deployment with capistrano2
...quires a few extra steps after ''update_code'' and then again after ''symlink''. Until I migrated to capistrano2, I had my own deploy_with_migration task which added these steps. What would be a recommended approach to accomplish the same using capistrano2? Thanks, Helzer --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send...
2007 Apr 24
1
Testing for multipart form uploads
...:format=>''xml'' BTW: On the other side, I''m using acts_as_attachment to process the multipart data. It works fine when I''m using a browser to upload. Any recommendations on how to get this to work in an integration testing environment? Thanks, Helzer --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send...
2007 Nov 21
0
Add Javascript to :confirm in form submit
...t to have some logic in my :confirm message, so that if the user enters some illegal data, it will notify directly when clicking on submit, and doesn''t have to go through the server. How can I add my Javascript code to the Rails :confirm attribute? Can I do that with AJAX forms? Thanks, Helzer --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send...
2008 Feb 11
0
Call methods from ApplicationController from a cron job
..., the controller will look pretty messy. Is there any was I can require the application controller and then call its methods from the cron job? What I''m getting now is just: NoMethodError: undefined method `create_message_in_chat'' for #<PeriodicChecker:0xb6cc7b9c> Thanks, Helzer --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send e...
2007 Jul 31
0
Force an object to previous state, when using lock_version
If I have an exception while trying to save an object, how can I tell Rails that it''s not saved yet? The object has a lock_version (used for optimistic locking). This is what I do: ins = MyClass.new( arguments ) begin transaction do ins.save! bunch_of_other_stuff() end rescue ins.save! # problem here! end The object''s save() sets the internal object state in a saved
2007 Aug 09
3
javascript_include_tag - release number instead of time stamp
I''ve noticed that the major part of my pages'' load time is the Javascript for prototype and effects. Instead of forcing a reload per request (by attaching the ?timestamp parameter), I''d like to force reload this per release. Right now, I load the CSS and JS manually (without the Rails helpers) and just append a release number manually. It''s OK, but when I