similar to: Today is "Rails Hates Me Day"

Displaying 20 results from an estimated 4000 matches similar to: "Today is "Rails Hates Me Day""

2006 Jun 01
4
How do I get today''s date?
I know this is a simple question, but i just want to put the current day, month, date and year on my website. I still can''t figure out how to read the Rails API. Can anybody help me out? TIA -- Posted via http://www.ruby-forum.com/.
2006 May 12
8
switching from development to production?
I think I''m missing a step here, but they don''t seem to cover this in the AWDWR book... does anybody know the various steps required to switch from development to production mode in Rails? I''ve scoured the application and changed everything that stands out, but the damn thing is still running off the development database and won''t connect to the production
2006 Apr 06
2
making an integer from a float
Does anybody know how to turn a floating-point number (i.e. 60.345) into an integer by cutting off or rounding the decimal portion? Either method, or both, would be quite welcome. Thanks! This forum rocks! -- Posted via http://www.ruby-forum.com/.
2006 Jul 05
3
splitting a story with double-spaced para''s
Quick question - if i want to separate a long string of text, separated by single carriage returns, into an array of paragraphs, I can use the following code: paragraphs = article.content.split("\n") The "\n" means a carriage return, as far as I can tell. If I wanted to take text, that had been written using the more common double carriage returns, into an array of
2006 Apr 03
15
How should I pick a random entry from the database?
Hi guys. Total newbie here. I''ve been doing web stuff since 1996 but only began the foray into scripting last year. I haven''t got my skull completely 360 degrees around OOP yet. It''s just me here (in Japan) and there are no Ruby groups in my area (never mind any in English). I''ve got a database table - real simple: question, answer, and id fields - and I
2006 Jun 06
8
How do I wrap a <%= link to %> around an image?
I''ve got a bunch of dynamically generated link paths that I want to use to link some dynamically-generated image paths. Specifically, I want to link thumbnails in a gallery to the larger images. But I''m stymied by Rails'' syntax. I can''t figure out how to do this. I tried this: <%= link_to(image_tag("../../images/photos/photo.photogroup/TN_
2006 Mar 30
7
text_area
How to make that the typed code on ruby in text_area it was carried out in @params ["name"]?? -- Posted via http://www.ruby-forum.com/.
2006 Apr 07
22
Find WHERE in Rails
I''d like to find all records that have a certain integer as their "level" field in the database. I know how to find all the records: allquestions = Question.find(:all) ...and I know how to find the one record that has a certain id: allquestions = Question.find(params[:id]) ...but how do you find all the records that share a certain value in one of their fields? I tried
2003 Jul 15
1
SysLinux path problem?
Hi, I'm happily using syslinux to boot from a FlashCard connected to my PC through an IDE interface but I could not find any way to put vmlinuz in a location different from the card root or it won't be found at the boot :-( Is there any known limitation for syslinux to the 'kernel' field? With both isolinux and pxelinux I never met such strange behaviour. BTW, did anyone
2006 Jul 05
2
splitting a paragraph into words and spaces
I''m using this: <% words = article.content.split(/ /) %> <%= words[0..20] %> to (ostensibly) split a paragraph into component words, with spaces in between, then print to html only the first 20 items, words and spaces. I got this (split(/ /)) from the online pickaxe book at http://rubycentral.com/book/ref_c_string.html#String.split . The problem is, the resulting array
2006 Jun 08
1
built-in dropdown jumps?
Hey everybody! I was just wondering if Rails'' javascript library includes something as simple as making a dropdown that jumps to the link when selected without needing a "submit" button. I see a bunch of AJAX effects and draggable-element stuff, but all i need is a simple dropdown... should I code it myself? -- Posted via http://www.ruby-forum.com/.
2006 May 31
3
Database can''t connect -
I''m sorry guys. I''m really still such a newbie at this. i''ve been having trouble getting my Rails apps to run on Dreamhost, and I think it might be a problem with the database connection. Anyway, I read on Code Snippets that I should do this: [rhod]$ ruby -Iconfig -renvironment -e "p ActiveRecord::Base.connection" to find out if my database.yml file is
2006 May 11
7
current user''s id?
I''m new to rails and have a question that seems simple but that I cannot resolve. Is there a way to find the id of the currently logged in user? Thanks, JP -- Posted via http://www.ruby-forum.com/.
2004 Apr 07
0
no good day today ! :(
Today I updated my asterisk cvs, I would love to set up mysql support for voiceboxes. Here is what has happened (by now): cvs does not compile as downloaded, module chan_oss reports an error; if I compile with -i all works fine except for chan_oss. Ok, time to set USE_MYSQL_VM_INTERFACE=1 in apps\Makefile and to do make install -i When I launch asterisk, (with chan_oss excluded)I get a
2007 Mar 23
2
Mocha 0.4.0 Hates My App
Hi all - I''ve recently made the leap from FlexMock to Mocha for mocks within my app. Today I decided to upgrade from Mocha 0.3.2 to Mocha 0.4.0. So I updated the gem, started rake and went to get some coffee. I came back 5 mins later and my units (which were clean) are now reporting 97 failures (!!!). Every failure reports a callstack like this: 18) Error:
2001 Mar 20
1
Wine hates everything but KDE!
OS: freshly updated linux mandrake 7.2 with my 2.4.2 kernel and ALSA .9 beta2 X: 4.0.2 with up to date helix GNOME for mandrake 7 and KDE (came w/ mandrake) Wine: 20010305 from source tarball Program: Starcraft 1.0 full Symptoms: Under Gnome (sawfish, icewm, twm, windowmaker all the same), takes over screen or makes a window (my choice) displays the "blizzard" splash screen (no sound)
2007 Jan 02
1
Recommendation: Stalled Mongrel? Memcache Hates Spaces
Hi Everyone, There''s quite a few of you who have contacted me about Mongrel suddenly stopping. After a lot of investigation, I found that the common thread between all of you is memcache and Eric Hodel''s memcache-client. People who were running this combination would have intermittent pauses and investigating the stalled mongrels showed that memcache-client was waiting for
2002 Feb 13
0
SJava still hates GUIs on Linux, both Blackdown and IBM... Can anyone verify IBM or Sun?
I've been having fun with crashes recently, both with Blackdown JDK and the IBM JDK, while building up the ROrca interface. It's just not stable for me, and my lack of grokking the intimate details of lazy evaluation is not helping. Brushing works, though, which is nice. I need a bit more stability before I get the "data add/change" features in line, though. Anyway, other
2005 Sep 13
3
Swig hates us...
Swig is making mincemeat out of ComboBox.new. Because of the way it''s picking the ''correct'' one to call it''s calling with a null name instead of a default name. How did we fix this before?
2008 Feb 09
3
IPtables Possibility
Hi, I just wonder if I can replace PIX firewall with machine having IPTable as my firewall. I want to control our firewall but due to the lack of knowledge in configuring PIX, i want to replace it with Linux or BSD. I do not have the time now to learn the complexity of PIX and yet I want to know what happening in my firewall and control it as much as possible. Do you think it is justifiable for