search for: sheong

Displaying 20 results from an estimated 34 matches for "sheong".

Did you mean: sheng
2006 Apr 17
4
Best place for generic utility classes?
I have some code that is simply formatting and parsing URLs and I really don''t want to associate it with a view or a controller or a model - I just want it to be available as a utility class. Where should this utility class go? I would have to import it into my controller using "require" correct? Thanks, Wes -- Posted via http://www.ruby-forum.com/.
2006 Apr 13
7
Whats the best way to achieve this?
employees HABTM projects, projects HABTM employees. I am doing a permissions page for a selected project. I know that I can get all of the employees in the system (@employee.find(:all)) or get all the employees for the selected project. What i''m trying to do is get a list of all the employees in the system and have a check box that states if they are associated with the current
2006 Mar 31
2
How to secure web services created by ActionWebService?
Hi, Does anyone know how I can go about securing web services created from ActionWebService? The manual from rubyonrails.org (http://manuals.rubyonrails.com/read/book/10) doesn''t say anything at all on this ... or do I have to implement my own access control? -- Sau Sheong http://www.saush.com http://read.saush.com http://jaccal.sourceforge.net -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060331/17d17262/attachment.html
2006 Mar 27
14
Image manipulation/resizing server-side?
I''d like to implement a system in a Rails app where I allow the user to upload an image file, and then the app takes that image and manipulates it, saving a thumbnail, small, and original size version of the file to the server. How would I go about doing that? Thanks, Jeff -- Posted via http://www.ruby-forum.com/.
2006 Mar 10
3
Ruby on Rails developers in Singapore?
...in Singapore, and if so would like to meet up to chat and talk shop? Maybe even form a support group for Rails, or form a community of Rails developers here? I''ve been using Rails for the past months developing an in-house web application, a port from an older application. Thks! -- Sau Sheong http://www.saush.com http://read.saush.com http://jaccal.sourceforge.net -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060310/816855cb/attachment.html
2006 May 16
5
Google Map problems
I followed the setup from http://cartographer.rubyforge.org/ but keep getting this error - NoMethodError in Sandbox#map Showing app/views/layouts/sandbox.rhtml where line #4 raised: You have a nil object when you didn''t expect it! You might have expected an instance of Array. The error occured while evaluating nil.[] Extracted source (around line #4): 1: <html> 2: <head>
2006 Apr 28
6
[OT] Ruby ftp client for windows
I know this is off topic, But, my boss has tasked me with finding a better ftp client than the one in Windows XP. Is there a Ruby client that can recover dropped connections, ( a resume feature)? Would be nice if it could handle secure/ encrypted transmissions as well? Failing that, can anyone recommend a good scriptable ftp client for the Windows plaftorm? -- Best Regards, -Larry "Work,
2006 Apr 21
3
Documenting web services API''s
Sorry to have to post this again - it was probably under the wrong subject and went unnoticed. Is there a standard for providing user documentation for methods that I expose through we services? The default documentation (method names and return types) that appears when the user visits http://localhost:3000/backend/invoke is concise and correct, but a bit terse. How can I give my users a little
2006 Apr 21
8
web services and dealing with before_filter
Hi all, I''ve got a Rails app with a ApplicationController that looks like this: class ApplicationController < ActionController::Base before_filter :authorize, :except => :login def authorize unless session[:user] flash[:notice] = "Please log in" session[:jumpto] = request.parameters redirect_to :controller =>
2006 Jul 18
5
SQL query question
Hello, I know it''s off-topic. But I''m sure you are using SQL and can help me ;) I''ve a table CARS and a table KEYS and a LOCKS table. CARS id|name 1|audi 2|ford 3|mazda 4|porsche ... KEYS id|car_id|lock_id 1|1|1 2|2|1 3|2|2 4|3|1 5|3|2 6|4|1 7|4|2 8|4|3 ... LOCKS id|name 1|main 2|spare 3|engine ... A car can have many keys. Keys are for different locks. How can I
2006 May 23
8
ad-hoc query
How do you run an ad-hoc query that does not belong in any model? I thought it was something like ActiveRecord::connection.find("my query..."), but I can''t seem to find the documentation on it. I know I''ve seen it somewhere before, though. thanks, Jeff -- Posted via http://www.ruby-forum.com/.
2006 May 15
11
can you explain this benchmark?
I want to load about 14000 words (a subset of /usr/share/dict/words) into a MySQL table in a migration: class CreateWords < ActiveRecord::Migration def self.up create_table :words, :force => true do |t| t.column :word, :string end say_with_time ''loading words...'' do words = File.join(RAILS_ROOT, ''db'',
2006 May 16
4
Oracle and MySql simultaneously from rails app
I searched this site on Oracle && MySql, nothing came up, so perhaps this is a new topic for this forum. I''d like to access two databases from the same application simultaneously (well, more precisely, in rapid succession, calling one first and then the other, as any "joins" will be done in the application code). One database is in MySql, the other is Oracle.
2006 Mar 12
3
Newbie: using find like a sql join query
I have a working Rails app with several related tables, but can''t find an answer to this question in the Dave Thomas Rails book. Imagine for example: table departments with columns: id, department_name table employees with columns: id, department_id, employee_name and of course the employees table has a constraint foreign key (department_id) references departments(id) So this is
2006 Oct 28
0
Problem starting up the drb server
.../custom_require.rb:21:in `require'' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require'' from /home/saush/reachible/config/../script/backgroundrb/start:68 Can anyone from this list help? Thks! -- CHANG Sau Sheong http://blog.saush.com - brain dump http://jaccal.sourceforge.net - smart card toolkit http://screensvr.rubyforge.org - Flickr screensaver http://ced.dev.java.net - Chinese-English Dictionary http://www.projectible.com - online project publishing Fellow, Singapore Institute of Arbitrators -------...
2006 May 02
0
Web mashup tutorial using Ruby on Rails
...tep web mashup using Ruby on Rails tutorial, going through how I created a simple job search mashup with Indeed, Google Maps and Yahoo web search service. The tutorial is at http://saush.com/blog/?page_id=48 The source code is available at the last writeup. Comments and feedback welcome! -- Sau Sheong http://blog.saush.com http://www.projectible.com http://jaccal.sourceforge.net -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060502/982ed7c9/attachment.html
2006 Apr 13
2
Legacy database with varchar2 primary key?
I rememeber seeing an article about how to cope with legacy databases where the primary key is defined as VARCHAR2. I only want read-access to the data. Does anyone have a link to such an article? Or can give advice? -- Posted via http://www.ruby-forum.com/.
2006 Apr 13
1
Read User Agent
Does anyone know how to read the user agent from a controller ? Thanks -- Posted via http://www.ruby-forum.com/.
2006 Apr 17
3
Please help : how to link_to() and css styles ?
Hello, I''m having hard times on a very simple problem : how to provide a css class to a link_to tag ? I''m using this : <%= link_to ''Cancel'', :action => ''list'', :class => ''btn-cancel'' %> and RoR produces this : <a href="/gallery/list?class=btn-cancel">Cancel</a> I''ve read the doc
2006 Apr 17
2
Simple Problem
Is it possible to select a portion of string? For example, in many websites, they give the first paragraph in the main page and link for the article on the other page. I remember this is available in PHP. Any help is appreciated. Thanks Rizwan -- Posted via http://www.ruby-forum.com/.