similar to: creating a temporary link with rails

Displaying 20 results from an estimated 100000 matches similar to: "creating a temporary link with rails"

2007 Sep 21
1
Temporary disabling after_update
Hi, I am trying to replace my old database trigger with ActiveRecord callbacks in rails. I have a model like following: class Action < ActiveRecord::Base belongs_to :inquiry def after_update #clean up all action associated with the inquiry. Action.update_all("latest = ''''", ["inquiry_id = ?", self.inquiry_id]) #find the latest action
2007 Jan 11
5
how to have default date for date_select
lo there all, i want to have a date_select heper default to the year 2006, but cant seem to find out how to pull it off. any takers ? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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
2008 Jan 18
18
Rails versus PHP in complex HTML/CSS
I have done a bunch of Rails stuff on my own and my company uses PHP. I often have to integrate very complex HTML/CSS into PHP. I know that the PHP looks more closer to the HTML than Rails because Rails has alot of link_to and other macro like calls that generate alot of stuff that you don''t see in the template. I am wondering if that could make it any tricker to generate the complex sort
2006 Aug 24
3
handling file uploads
hey guys, the way i''m handling file uploads is no good, but i''m not sure what the best way to go about it is. right now my approach is to use FileUtils.mv to move the uploaded file to the directory i want it in. this approach doesn''t work well because sometimes the uploaded file is just an IO object instead of a temporary file (apparently small files aren''t
2009 Jul 02
3
[LLVMdev] Get identifier for unnamed temporary
Is there a way through the Value class to get the identifier for an unnamed temporary? Or alternatively, could someone point me to the code where temporaries are assigned sequential numbers as identifiers so I can better understand this issue? Thanks, Scott
2006 Nov 29
6
How do I create an array to represent an empty record?
Here''s something that''s a snap to do in desktop database management systems (like Paradox or Access) but I haven''t figured out how to do it in RoR, and can''t seem to find any examples by googling, etc. My overall goal is to create a temporary space in which to create and process a single new record (representating a payment transaction), and when I''m
2006 Dec 14
8
ActiveRecord outside of rails
I have a few questions regarding using activerecord outside of rails. Usage is with legacy databases, which gives rise to some of the problems. Probably the first, and most simple question though, is how to capture the SQL log, with which I can hopefully figure the other stuff out. I''m currently trying ActiveRecord::Base.logger = Logger.new STDOUT Based on random googles, but it
2007 Jan 04
8
Job market Rails, Java, C++, etc
I have been sending out my resume to whatever Rails jobs I can find. There is a limitied supply unless you want to relocate. It seems like the Rails stuff out there gets alot of applicants, though I am not sure if they tend to be locals, very experienced etc. I have also been applying for C++, Java, and Perl jobs. I have alot of background in C++, but am a little rusty. I have done some Java, but
2007 Feb 12
6
Cannot send_file then delete it
My application accepts a form to create multiple large(100''s of MB) temporary files and then zip''s them up to send off to a user. I have the files constructed, and the zipping working. The problem is that if I use send_file to send the zip off to the user, I cannot delete the file afterwards as it seems send_file forks off another process and deletes the file before the
2006 Feb 20
3
rails temporary table?
hi all any one know how to create a temporary table and fill it, like: #------------------------------------------------------------ create temporary table test1 select * from test; #------------------------------------------------------------ regards. -- Posted via http://www.ruby-forum.com/.
2007 Mar 24
2
Why not giving every link, button etc. tag a unique id attr?
Hi all I''m playing around with Selenium IDE for creating automated acceptance tests for my RoR projects (very cool tool by the way). Often it''s the easiest way to pass a HTML-tag ID to Selenium to perform actions such as clicking on a link or submitting a form. Sadly Rails does not automatically create ID attrs for many tags like links or buttons. Has this a special reason? Or
2016 Dec 11
3
[PATCH 0/2] generic function for temporary path generation
Cosmetic change as suggested in this previous patch: https://www.redhat.com/archives/libguestfs/2016-November/msg00111.html Matteo Cafasso (2): lib: generic function for temporary path generation lib: use guestfs_int_make_temp_path to generate temporary files src/drives.c | 5 ++--- src/file.c | 22 +++++++++------------- src/guestfs-internal.h | 1 + src/journal.c
2015 Dec 04
1
[PATCH] builder: create temporary images in the cachedir (RHBZ#1288201)
Temporary images can be quite big, more than the space available in $TMPDIR when it's on a tmpfs; hence, place them in our cachedir instead. --- builder/builder.ml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/builder/builder.ml b/builder/builder.ml index 957bc37..3750e5f 100644 --- a/builder/builder.ml +++ b/builder/builder.ml @@ -378,6 +378,8 @@ let main () =
2006 Nov 18
3
New Rails site: Smatchy.com
A newly released site developed entirely in Rails, known as Smatchy (www.smatchy.com), presents an interesting take on recommendations and could become the standard rather than the exception. The recommendations were more useful than typical sites, especially the ''Unique Recs.'' More info here...
2008 May 23
20
Rails validation is inefficient
Hi, I have a User model, with a validates_uniqueness_of :login The generated SQL for the validation is: SELECT * FROM `users` WHERE (LOWER(users.login) = ''fernando'' AND users.id <> 10001) LIMIT 1; and it takes 0.13s to happen (my table has 10.000 rows) When I use the EXPLAIN instruction on it, it shows that it will use the primary_key as index, but this is not
2006 Sep 20
17
Newbie : What is the number Rails adds in images URL, etc?
If I write : <%= image_tag "rails.png" %> I get in HTML : <img alt="Rails" src="/images/rails.png?1158095722" /> What is the number at the end of the src tag ? What is it for ? Thanks :). Nicolas. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to
2008 Dec 13
2
What is "The Rails Way" to do this?
I have a PHP application with the following in one of the "views": <input type="button" onClick="newAlt()" value=" + "></nobr> The JavaScript for "newAlt()" is: // using DOM create new input box for alternate part function newAlt() { var html = "<input style=''background-color:#FFFFCC'' "; html +=
2008 Jul 07
5
Creating a rails project
Hi, I''m just starting with Rails today... type this in the command prompt: rails C:\Documents and Settings\user\Desktop\file Then it displays... create x, create y, etc... But when I check the desktop, I see no folder. Thanks -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the
2008 Dec 09
2
Rails and Ruby behind proxy
Hi there, I''ve a little problem. On my code, I use the flickraw gem. On the application.rb there is a require ''flickraw'' who create a new instance, and for that need to pass the net. It works at home, but in my office we have a proxy, and when I launch webrick I have an error saying that I''m behind a proxy :(. Does anyone have an idea on how to correct this
2006 Nov 28
11
New Rails Site: Wordie
My latest stupid web trick, built, with love, in Rails: http://wordie.org Make lists of words. See who else likes the same words. Basically, it''s a dating site. Built on thanksgiving while half-watching football and launched yesterday. In other words, half-baked, but I thought some of you might find it mildly amusing. John ____________________________ John McGrath Squirl: a site for