Displaying 20 results from an estimated 10000 matches similar to: "make a system call and proceed without waiting for result?"
2010 Apr 13
5
params[hash] and link_to.... easy question... but I am stupid :)
routes.rb
map.connect '':controller/:action/:id/:draw_id'', :controller =>
"admin", :action => "edit_position"
In a view I have:
<%= link_to "#{@draw.positions[0].team}", { :controller
=> :admin, :action => :edit_position,
:id
=>@draw.positions[0].id, :draw_id =>
2008 May 28
2
functional testing joins table problem
I have models/controllers
Class Facility
has_many :facilities_services, :dependent => :delete_all
Class Service
has_many :facilities_services, :dependent => :delete_all
Class FacilitiesServices
belongs_to :facility
belongs_to :service
so in my test/functional/facilities_controller_test.rb, I have
post :destroy, :id => 5
which tosses an error...
2008 Apr 02
9
Problem getting the most recent has_many associated object
I can''t get my view to display the most recent parameters from an
associated object in a view... here is a birds-eye of my app:
I have two models, Ferms and Kinetics. Ferm has_many :kinetics,
Kinetic belongs_to :ferm. Kinetic has the fields ferm_id, brix and
temp.
In my ferms/index view I have a table listing the attributes of each
ferm instance. I would like to display the most recent
2008 May 30
4
deprecation warnings
I''m still using 1.2.6 and have an eye on upgrading to 2.0 so I monitor
the logs for deprecation warnings. I thought I was clean and
log/development.log shows nothing when doing ''grep deprec
log/development.log'' but in testing, one of my testing controllers
throws a bunch of these on screen...
2009 Jan 01
2
Ruby on rails API website suggestion
I would like to request a feature.. like: http://rubyonrails.org/function
and it
will search inside http://api.rubyonrails.org for the function and
show it.
Like PHP has.. http://php.net/basename
Example: http://rubyonrails.org/truncate and it will points to
http://api.rubyonrails.org/classes/ActionView/Helpers/TextHelper.html#M001541
That woul be cool.
Thanks
2009 Jan 01
2
Ruby on rails API website suggestion
I would like to request a feature.. like: http://rubyonrails.org/function
and it
will search inside http://api.rubyonrails.org for the function and
show it.
Like PHP has.. http://php.net/basename
Example: http://rubyonrails.org/truncate and it will points to
http://api.rubyonrails.org/classes/ActionView/Helpers/TextHelper.html#M001541
That woul be cool.
Thanks
2007 Mar 09
3
Password protecting access to script/console ?
Sorry if this is asked and answered before, is there away to password
protected access to script/console ?
I''ve seen a few posts on how to protect/encrypt the db passwords in
database.yml, but that still leaves unprotected access to pretty much
the same data via the console.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received
2007 May 22
4
Recommendations for eternally-running backgroundrb workers?
I''ve got some workers that I want to have running all the time. Right
now I''m just launching them manually, by requesting a special page in
my rails app that includes lines like:
MiddleMan.new_worker(:class=> :receiver, :job_key=>:r,
:args=>{:sleep_time=>10})
This strikes me as a really weak way to fire up my workers. I
basically want to automate things so
2010 Jun 30
2
One time shot feed params from development
I got a confirmation on my development system that should have gone to
the production system and so I have a ''Post'' set of data which I know
from my development logs that I want to feed to my production system.
Is there some easy way to do this in the console or do I have to try to
recreate it with wget or a web browser?
Craig
--
This message has been scanned for viruses and
2011 Dec 17
39
Stack Level Too Deep Error (can't seem to figure it out)
Hi all,
I am running into a weird issue where my application is giving me a
stack level too deep error. I can''t seem to find where my code is
throwing this error. On the machine I developed this code on, this
error does not show up when I run rails s but when I move the code to
another system to run it this error shows up.
The system that this code runs fine on is a mac os x machine
2006 Nov 02
4
application controller security
Shouldn''t everything in the application controller be protected by
default?
I just realized that my app can be called like this:
www.myapp.com/application/method and it actually tries to run that
method inside my application controller.
Is everyone else just adding "protected" at the top?
Thanks,
Chad
--~--~---------~--~----~------------~-------~--~----~
You received this
2006 Sep 28
2
Duplicate record weirdness ?
First off BackgroundRb rocks!!!!. Top marks Ezra, it''s gone a long way to
stopping us from doing a nasty curl/cron hack :)
Okay so here''s what we''re using it for.
We''re synchronising data from a Filemaker database, via web service equest,
into a mysql database via a rails model called ''Syncer'' [How''s that for an
oddball use case!].
2000 Dec 28
1
Might want to allow different host keys for different ports on same host
Hi,
and here's the next feature request, which sounds interesting. Also I
think I won't need much extra code to add this feature. So what do you
guys think?
> `ssh' with its host key checking is incompatible with the use of
> `redir' to map different ports on a gateway/firewall system to
> different systems behind the firewall.
> For instance, I redirect ports as
2008 Jun 19
3
LDAP Authentication fails with ñ character in password.
Hi Guys,
I''ve got a rails application that uses activeldap to authenticate
users. Its been working great for about 6 months now, but a user from
mexico started using it recently, but can''t seem to login. I''ve
narrowed it down to the fact that his password contains a ñ character
in it. This problem is also present in a test user account I''ve setup.
ActiveLDAP
2010 Apr 14
3
PGError: duplicate key
I''m running a rails 2.3.5 / ruby 1.8.7 / postgresql 8.4.2 app and have
just run into a curious problem.
I have several tables that are initialized with data from csv files
and I''ve noticed that, when I try to add new data to any of these
tables via Table.new I get a PGError on duplicate key.
For example:
MIGRATION:
class CreateNumbers < ActiveRecord::Migration
def self.up
2009 May 26
1
library for URL parameters adding, removing, or replacing?
i think PHP doesn''t have such simple functions yet... does Ruby have
it?
if in PHP, when we add a param to the URL
$redirectURL = $printPageURL . "?mode=1";
it works if $printPageURL is "http://www.somesite.com/print.php", but if
$printPageURL is changed in the global file to
"http://www.somesite.com/print.php?newUser=1", then the URL becomes
badly
2011 Mar 18
1
creating a htpasswd file for certain urls
H All
I am in a kind of fix , i got a website ( beta.somesite.com ) .. that
need to be password protected , however there are two URLs that
should be allowed to all with out password access. Ona cent os box 5.5
i am running apache .
the entire site needs passwd protection except for the Below Urls .
http://beta.somesite.com/wp-content/uploads/2011/03/large_1990782-e1299229617964.jpg
2003 Jul 17
1
2 GB Limit when writing to smbfs filesystems
I'm running RedHat 8.0 with samba-2.2.7-5.8.0 (installed from RedHat
distribution)
When I use cpio to write a backup (> 2GB) to a smbfs filesystem, I get the
error: File size limit exceeded
I get the same error when I linux copy (cp) a file (> 2GB) from a Linux ext3
filesystem to the smbfs filesystem.
The smbfs filesystem is mounted from a Windows 2000 Professional
workstation.
After
2010 Jun 03
7
Scheduled tasks in Rails: Cron + wget = Best solution?
Hi there,
do you agree that for having scheduled tasks in Rails, the leanest
solution is the following?
- Create a controller with an action for each task
- Implement the logic of the task as controller code
- Set up a cron job at the OS level that uses wget to invoke the URL of
this controller/action at the appropriate time intervals
Advantages:
1) full access to all your Rails objects just as
2009 Jan 28
2
ZFS+NFS+refquota: full filesystems still return EDQUOT for unlink()
We have been using ZFS for user home directories for a good while now.
When we discovered the problem with full filesystems not allowing
deletes over NFS, we became very anxious to fix this; our users fill
their quotas on a fairly regular basis, so it''s important that they
have a simple recourse to fix this (e.g., rm). I played around with
this on my OpenSolaris box at home, read around