similar to: Scheduled tasks in Rails: Cron + wget = Best solution?

Displaying 20 results from an estimated 7000 matches similar to: "Scheduled tasks in Rails: Cron + wget = Best solution?"

2007 Nov 16
3
Route Information
Is there a method to return a hash of the route configuration based on a path? For example: magic_method(''/my_controller/my_action/my_id'') => {:controller => ''my_controller'', :action => ''my_action'', :id => ''my_id''} Thanks! Tom --~--~---------~--~----~------------~-------~--~----~ You received this message
2006 May 09
1
Reusing a model to form and link_to.
Hy guys, Inside my app I have a form which contains user information. Sometimes a have a form with a text_field as above: <%= form_remote_tag(:html => { :action => url_for(:controller => "my_controller", :action => "my_action") }) %> <%= text_field(''my_object'', ''my_parameter'', :maxlength =>
2010 Jan 31
3
Append/Prepend to a template from controller method
I want a method in app/controllers/application.rb that can prepend/append text to whatever template gets rendered. Of course I can''t call render twice w/o getting a double render error, so is this possible? I want to redirect after a delay using a meta refresh. Here''s what I''ve got: app/controllers/application_controller.rb: def redirect_after_delay (url, delay)
2006 Feb 26
1
Help with ruby=>html
Hi! I''m new to ruby and rails and got problems with using basic methods like form_tag or link_to etc to create what i need, i.e. to specify css class or id or name of html elements. I have problem with understanding rails api (it''s just as an example): form_tag(url_for_options = {}, options = {}, *parameters_for_url) what parameters can i pass to form_tag? How to specify
2006 Mar 27
13
Is this a bug in Ajax handling?
When a controller responds to a link_to_remote with a redirect_to, the link_to_remote gets a success callback, this would seem like a bug to me, at a minimum it should return a failure? This is driving me crazy because all the login engines/generators respond to an authentication error with a redirect_to. The work around is to change them to all do a render :layout => false, :status => 500
2008 Apr 19
4
Displaying external url's
I am a rails beginner and I am having trouble displaying external urls on view. This is what i have in DB for ex: www.rubyonrails.com, if i try to construct the url on the page using link_to the url formed is - http://localhost:3000/www.rubyonrails.com. Can someone help me in fixing this issue. Thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you
2007 Feb 21
6
Problem with url_for and https - overrides all options
I have a piece of code like this in one of my views: <%=link_to "link here", :action=>''my_action'', :id=>1 %> It works fine on my local development machine, running Webrick over http and it works fine on my testing server which is running single mongrel instance behind Apache 1.3 as a proxy. On both the outcome link is this: <a
2006 Aug 17
2
How to trigger an action from script/console
Hi, I have build a conversion script from an old database to a new one (which is designed to work with ROR), and every action converts one table and takes over 5 minutes... When I trigger the actions from my browser, I finally end up with a "Failed to start properly"... So, simple question: How can I do this from the console, that is to say, trigger one of my controller''s
2006 May 02
1
Accessing Parameters - Params (nil)
I''m trying to render a component that pulls information based on a parameter that is passed by a link_to item, but my params object is nil for the following code in the controller: records = ControllerName.find(params[:id]) but the error page also has this: Parameters: {"id"=>"7"} I''ve tried to access it (in the controller) using: variable =
2007 Jul 27
1
help compiling tcng on 64bit
Hi, Trying to compile tcng on 64bit server (centos-5 64bit), I''m getting: -------------- cc -g -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -I../shared -DVERSION=\"`cat ../VERSION`\" -DTOPDIR=\"/usr/local/src/tcng-non-patched\" -DDOLLAR -DCONFIRM_EXCEED -c -o f_fw.o f_fw.c In file included from ../shared/memutil.h:13, from
2007 Dec 31
2
Conditional Float Precision
I''m trying to figure out the best way (and hopefully leanest) to conditionally have precision to a float number. Here''s what I''m doing... I have a float (which has a default precision of 1) so like 250.0 What I want to do is have the precision go to 0 if the value after the . is 0 = so 250.0 would show as 250, but 250.5 would show 250.5. Thoughts? Thanks.
2006 Jan 16
3
routing to controller inside module
Hey, am i to stupid to find the information about how to route to a controller in a module? Maybe module support has gone! The controller is under: app/controllers/admin/my_controller.rb The my_controller.rb file looks like this: module Admin class MyController def index render :text => ''Hello!'' end end end How does a route to all controllers under module
2008 Feb 02
3
Question abt redirect_to..
I found a reference to using attachment_fu and followed the lead of it but having an issue with the redirect_to that renders the fb:render tag - In my form I''m setting the canvas to false, file is being uploaded / save fine but when I attempt to redirect: redirect_to :action => :new, :canvas => true Unfortunatly it looks like my callback URL is getting printed twice, e.g.
2006 May 11
1
skipping filters
I have a simple login scheme in application.rb. Something like :requires_login is called in any controller as a before_filter. All is good, except I''m having trouble figuring out how to make the public login actions skip this before filter. Here''s what I have: application.rb skip_before_filter :requires_login, :only => [:login, :logout, :confirm_valid_login]
2006 Jul 20
5
Need HELP changing link_to_remote to a button
I would really appreciate some help with changing a link_to_remote call to a button of some sort. Here''s a little background. On the page there are two <div>s. One is a form that lets the visitor enter items. The second <div> is where the entered items get displayed, each in it''s own item <div>. Each item <div> has two <span>s. The first one
2014 Mar 16
4
unable to make USB-ZIP using rufus_v1.4.5
Hello Sir, Following are the settings I used, Device: NO _Label (O:) Partition scheme and target system type: MBR partition scheme for BIOS or UEFI computers File System: FAT32 Cluster size: 4096 bytes (Default) New Volume label: (i)Quick format (ii)Create bootable disk using: MS-DOS (iii)Create extended label and icon files Format Options > Advanced Options: (i)List USB Hard
2016 Mar 08
2
Improving TAILS, WAS: Module Versioning
Here are some thoughts: 1. Customized Syslinux could be customized such that it refuses to boot from USB. No amount of version-matching nor downloading from the same source can help with that scenario. A different Syslinux would be needed, by definition (of the customizer) 2. Slightly less bad is where an ISO or CD/DVD is made with a key piece of non-ISOLINUX Syslinux missing
2019 Oct 22
2
Problems with internal DNS
On Mon, Oct 21, 2019 at 5:03 PM Rowland penny via samba < samba at lists.samba.org> wrote: > On 21/10/2019 15:47, Thomas Schweikle via samba wrote: > > Hi! > > > > Samba server set up for domain rufus.ada.de a proxy is reachable in > > proxy.ada.de. > > How are you running Samba ? > As ADDC. Please post your smb.conf. > OK. Here it is: [global]
2005 Oct 16
13
More than one parameter with link_to_remote
Hi all, I''m trying to pass more than one parameters using link_to_remote, but I''m getting a behaviour that seems quite strange to me. Here''s the code: link_to_remote ''some text'', :update => ''form'', :method => ''get'', :url => { :action =>
2006 Jan 14
3
link_to_remote where the url contain a javascript variable
Ok, so I am basically trying to use ''link_to_remote'' and pass the value of a javascript variable as an argument. Something like that: link_to_remote "my_link", :update => ''my_div'', :url => { :action => "my_action", :var => ''my_var'' } Basically,