similar to: Escaping Arithmetic Symbols

Displaying 20 results from an estimated 3000 matches similar to: "Escaping Arithmetic Symbols"

2006 Mar 21
3
Switch...err Capistrano hangs
I''m having a little bit of difficulty deploying my app. I''ve run the setup and it works with Cap, but when I try to deploy it hangs at "querying latest revision". I can access my svn locally (I''m on a windows xp sp2 machine) using SubClipse plugin, but not through the command line though (yes, svn client is installed). I''m pretty sure that
2007 Jun 27
5
Mosquito Fixtures Won''t Load
I can''t get fixtures to load correctly in a Mosquito test. The first fixture loads in the unit test, but the rest don''t load at all. File structure: tracker/ tracker.rb test/ test_tracker.rb fixtures/ tracker_measurements.yml tracker_projects.yml Relevant test code: require ''rubygems''
2006 Mar 24
1
Caching and Capistrano
I had an incredibly difficult time getting this to work correctly and I have a couple of comments/questions, after the fact. When using caching and Capistrano together, how have you set the permissions on your RAILS_ROOT/public folder...or have you sent your cache data to your document root? I''ve got it working now, but of course, it will break the next time I deploy. I was
2007 May 07
3
Module Madness
I''m wanted to make a "global" module that I could include in my application for some shared code between them. I''ve been making several camping apps and wanted them all to share a helper/partial that contained the navigation. I ran into a lot of difficulty when trying to include it, the primary problem being "methodUndefined" errors. I did finally get it to
2007 Oct 06
4
NO NAME (Because of --dry-run) output
I''m just getting started with rspec, I''m running on edge for both. In a fresh project, I freeze edge, install the edge rspec plugin. I generate a simple rspec_model and run the spec. It passes. When I run rake spec:doc, I get the following output: - NO NAME (Because of --dry-run) where the specification should be. In fact if I just make a pending spec, it does the same.
2006 May 16
4
Problems with multiple ''id'' columns in a join_table
I have a problem declaring a relationship through a join_table ; the SQL generated by ActiveRecord is correct, but there are two columns called ''id'', and the final object gets the ''wrong'' column ... Here''s a more detailed description of the data, code, and problem :- There''s a People table, with id, name, and a few things. Also a
2006 Mar 14
8
email address parse
hi all how to parse such email string to a array: #-------------------------------------------- "joe black"<joe_1@joe_black.com> joe_2@joe_black.com, joe_3@joe_black.com #-------------------------------------------- seems emails from user input include various format. and i have to split them to a array. any idea? regards. -- Posted via http://www.ruby-forum.com/.
2006 May 30
7
Stripping HTML tags from a string
Hello, Is there a common way of stripping html tags from a string? Right now I''m just calling gsub!(/<.*?>/, ''''), but with a background in PHP and always having used its strip_tags() method, I wonder if the Rails community has standardized this fairly common task with something a bit less simpleminded than my quick fix. Thanks! Zack -------------- next part
2007 May 19
2
RV permissions -- can''t park in my lot!
I''m trying to setup RV and cannot get it started. I keep getting: Permission Denied : /var/log/rv.log I''ve tried running it as root to test and also using www-data and chrgrp of rv.log to www-data. Here''s the output: nohup su -c "/usr/bin/ruby rv_harness.rb 3301 127.0.0.1 < /dev/null 2>&1 > /dev/null" www-data < /dev/null 2>&1 >>
2006 May 11
4
Ticket/Issue support system
Hi I am looking for a Open Source RoR-based system for handling support issues for our customers. I needs to be simple so that the end user easily can add support issues. We also need to administer the issues (assign to developer/support person), schedule, and list issues (tickets). I have found SimpleTickets, which seems to be a good alternative, but I would like to know if any one else out
2006 May 09
13
What is the license of generated code?
I''m trying to figure out what the software license would be for code (scaffolds, etc) generated by Rails. Basically, if I set up a Rails project, can or should I be able to claim copyright (and therefore have the ability to license under e.g. GPL) over the files generated by :- - The "rails" command that creates the initial tree of files - The output of "generate
2006 Jul 26
3
newbie: Scaffold doesn''t pickup DB changes
I''m following along with the depot example in ''Agile Web Development'' and ran into a problem with Scaffold. I changed the MySQL table structure to add a few columns directly and also tried the migrate script to change the database after I got the initial scaffolding to work. However, I can''t seem to get the new columns to show up and am stumped as to how I can
2006 Jun 16
10
Issue with caching of .PNG files in IE..
I''m running a Rails application with WEBrick server. We are displaying an Image from the server to the Client (Browser). First time on the browser everything looks fine, upon clicking the link, it contacts the server and displays in IE brwoser the image that was stored on the server. But in case if the image gets changed on the server(File Name being the same), then even though i
2006 May 30
11
Another String Manipulation Exercise
Hi guys, And I thought it wasn''t a problem. Here''s my string "/var/www/vhosts/mysite.com/httpdocs/public/file/mypic.jpg" How do i take out all the text that comes before "mypic.jpg"? Trickier than I first thought. TIA, Bing -- Posted via http://www.ruby-forum.com/.
2006 Feb 14
10
acts_as_versioned and getting authors
Hey guys and gals, I have the following object that has acts_as_versioned: class Note < ActiveRecord::Base acts_as_versioned belongs_to :user end The schema for my notes table is as follows: create_table :notes, :force => true do |t| t.column :id, :integer t.column :noteshare_id, :integer t.column :user_id, :integer t.column :title, :string
2006 Feb 21
2
start_form_tag with method GET
Hi, How can I get start_form_tag to use GET instead of POST? I have tried... <%= start_form_tag {:action => ''search''}, {:method => ''get''} %> But it doesn''t work... compile error ./script/../config/../app/views/search/index.rhtml:35: syntax error _erbout.concat(( start_form_tag {:action => ''search''}, {:method =>
2006 Jan 30
1
Either/Or Validation
How would I use validations to ensure I either received a blank value or a ten digit number? If I set validates_length_of :field, :in => 0..10 then that would allow any value in-between. The allow_nil => true option does not seem to work. I''ve also tried using this with some combination of validates_numericality_of but cannot get it to work. Any help would be greatly
2006 Jun 06
11
Instant Rails speed on my puter..
Hi. I''ve installed Instant Rails, and when testing my rails apps, I''m noticing the load time is quite noticable. I''m concerned when I convert to real produciton, going live, if there''s going to be the same delay, plus additional bandwith traveling time. I am running on a pentium 4.. Insights on speed.. Thanks Dominic Son -- Posted via
2006 Jun 01
3
New rails site: AJAX Webbrowser
Heres my Ruby on Rails webbrowser: https://palary.org Sorry, but I just couldn''t resist. Cheers, Scott
2006 Jun 05
3
Interactive debugging of rails models
Hi, How can I debug the models interactively? When I load the console using "ruby script/console", the changes in the models doesn''t get reflected. I have exit the console and reload the console everytime I make some changes. Is there a better way? Thanks, Hari -- Posted via http://www.ruby-forum.com/.