similar to: Don''t Try This at Home (rails --help)

Displaying 20 results from an estimated 10000 matches similar to: "Don''t Try This at Home (rails --help)"

2005 Feb 12
3
ActiveRecord not updating record
Hi, I''m having some problems using ActiveRecord to update records in a sqlite database. This isn''t exactly as rails question, since I''m doing this initial import outside of rails, but I''m hoping someone hear might have an idea as to what my problem is. The basic problem is with the following code (which is run in a big loop) m = Movie.find_by_title_and_year
2005 Apr 04
6
Rails on straight CGI - doable?
I''m planning on dipping my toe into the rails ocean after having lurked here for a bit. From what I gather, rails *WILL* work on a straight CGI based server setup, it''s just slow, right? Since this is going to be for my own enlightenment, I just need to confirm(/deny) it''ll work at all right now; I''ll work on the "fast" later.
2005 Mar 04
5
Rails and SCM Best Practices
Hi all-- I''m starting a new Rails project and I''m preparing to import it into my local Subversion repository. In the past, I''ve just imported the entire set of files generated by ''rails'', but I''m starting to wonder if that is the best way to approach things. For instance, it makes sense to add the log/ directory, but probably not the
2005 Mar 01
1
Scratch 1.0
== What is Scratch? Scratch is a little toy I put together in Ruby on Rails. Think of it as a spin-off of my larger Rails app, Elite Journal. If nothing else, you can think of Scratch as a demonstration of the new Action Web Services component of Rails. From the web page: Scratch is the minimalist''s web log. Scratch gives you nothing more than the meta-weblog API for posting.
2006 Jun 09
2
Timzones, UTC, and to_xml()
Does anyone know a good way to hook into the AR to_xml() method to allow for adjusting datetimes to a user''s timezone? Basically I want a user to be able dump all their data before cancelling an account. I store all datetime info as UTC as per the recommendations of Jamis Buck and Scott Barron in the Rails Recipe article "Dealing with Timezones". Come to think of it I bet
2005 Nov 05
4
Changing plugins_path in Rails::Configuration
I have two apps sharing a common model and lib. I''d like to share my plugins as well, however I noticed that the plugins_path in the Rails::Configuration (0.14.2) is not accessible as is view_path or log_path. What would be the best way to go about accomplishing this? Thanks. --Ryan
2005 Jan 06
14
Announcing SoapBX.com a new Rails App for making presentations
I got an idea less than two weeks ago and now as a testament to the power of Rails I have released the first initial beta version of SoapBx, with less than 20 hours of programming involved so far. SoapBX is an application to create css based presentations and uses Erik Meyer''s cool S5 css and js code: http://www.meyerweb.com/eric/tools/s5/ With SoapBX you can use basic Textile and a
2005 May 13
5
HTML sanitizer
Hello! Does anybody know of a Ruby implementation of a HTML sanitizer that prevents the attacks described on the xss cheatsheet? (http://ha.ckers.org/xss.html) I checked out the version Jamis wrote (http://dev.rubyonrails.com/ticket/1277), but that only covers the very basic attacks. Anybody? Just figured I would ask before, before I reinvent the wheel.. Ciao! Florian
2005 Dec 16
6
Switchtower for production?
Hello, The company that I work for will be developing a large webbased survey (for a government institution) somewhere in Q1/Q2 of 2006. I''m investigating the technological possibilities and Rails is certainly a candidate. The survey application will have to perform under very high peak load, and the exact specifications of the hardware are not known at this point. I''m assuming
2005 Sep 19
5
switchtower beta gem?
would it be possible to get another beta gem posted for switchtower? core rails has been getting nice regular updates to the beta gems, but switchtower is still back at 1962.
2005 Aug 22
5
XML "Un-Builder?"
I''ve been unserializing XML in PHP with the XML_Serializer class, and I''m wondering if anyone knows of such a class for Ruby. Nothing fancy, just perhaps a simple way of converting arbitrary XML to a Ruby object. Maybe this has been implemented somewhere already? Thanks, Raymond
2005 Oct 06
5
webrick seen only on local machine
I am running the webrick server (/script/server) and I would like to be able to view the application from any browser. However, I can only see my application from a browser opened up on the localhost. When I use any other browser it times out. I have already modified the following line in the /script/server file (I''ve tried the numeric ip address also) so that it is the real ip
2005 Jan 28
17
breakpoint not working
I keep getting: No connection to breakpoint service at druby://localhost:42531 (DRb::DRbConnError) Tries to connect will be made every 3 seconds... This happens every time i run ./script/breakpointer using 0.9.5 on OSX or Windows. Any ideas?
2005 Dec 16
6
rake remote_exec on Windows
I am using the shovel deploy.rb from http://nubyonrails.com/pages/shovel I have SwitchTower-ized my app, copied the shovel deploy.rb file and put my settings in it. But when I run "rake remote_exec ACTION=setup_lighty" from the local app root it has no effect. It should prompt for a password for at least throw an error? I just get returned to the DOS prompt. If I do "rake
2005 Oct 20
5
Unit Test Error: `load_specification': undefined method `parse' for Time:Class
All, I''ve come across a confusing problem when attempting to run unit tests for an application on OSX (works on Windows). I''m receiving the following error: `load_specification'': undefined method `parse'' for Time:Class (NoMethodError) This is also confusing because I can''t figure out how the error appeared. When I revert back to previous revisions,
2005 Apr 14
6
Ruby/Odeum Full Text Inverted Index Extension
Hello Everyone, Announcing the Ruby/Odeum library--a full text inverted indexer for Ruby: http://www.zedshaw.com/projects/ruby_odeum/ Ruby/Odeum is an extension that wraps Mikio Hirabayashi’s QDBM Odeum library for fast reverse indexing of documents. It supports indexing documents by their words, breaking the text into words, normalizing the words, searching, and attaching meta-data to each
2005 Dec 22
3
How to specify SwitchTower SSH port
Hi ! Following Ezra's suggestions on http://brainspl.at/pages/perfect_vps, I changed the port sshd listens to. I'm trying to setup SwitchTower, and I don't know how to set the port. Where should that be configured ? I can't see anything in switchtower.rake, nor can I see it in the source. If this already exists, can anybody point me to documentation. If not, can I get any
2005 Jan 25
4
Collection_select with multiple options
Hi, I have built a select field that allows multiple options selected with collection_select and "multiple"=>"multiple". How do I go about receiving the values? If I use a variable name like collection[], it complains that I can''t use @collection[] as the instance variable. TIA victor
2005 Mar 07
6
Automatic timestamping in join tables [596]
Hi, A few days ago I submitted the following ticket http://dev.rubyonrails.com/ticket/596 asking that ActiveRecord::Timestamp also apply for the join tables of habtm. The answer was that it was left for milestone 1.x, and since I think that without this functionality rails 1.0 would be incomplete, I''m raising the issue here to discuss it. My use case is very simple, I
2005 May 10
58
A quick straw poll
How many of you are using Rails: 1. As the primary development tool at your Day Job 2. As a small part of your Day Job 3. Not using Rails in your Day Job, but are using Ruby 4. For OS/outside work/hobby -- sam http://www.magpiebrain.com/