search for: saush

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

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 Mar 10
3
Ruby on Rails developers in Singapore?
...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 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 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 Oct 28
0
Problem starting up the drb server
....8/drb/drb.rb:756:in `open_server'' from /usr/local/lib/ruby/1.8/drb/drb.rb:754:in `open_server'' from /usr/local/lib/ruby/1.8/drb/drb.rb:1336:in `initialize'' from /usr/local/lib/ruby/1.8/drb/drb.rb:1624:in `start_service'' from /home/saush/reachible/config/../script/backgroundrb/../../config/../vendor/plugins/backgroundrb/lib/backgroundrb.rb:11 from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require'' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/depende...
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 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 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 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 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 May 02
0
Web mashup tutorial using Ruby on Rails
Hi, I wrote a step-by-step 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.rubyon...
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/.
2006 Mar 10
2
Syntax for <input type=hidden> in rhtml????
Hi, I am new to ROR. PLease tell me what is syntax of creating hidden field in form inside RHTML file. I knonw the syntax for text box (<%= text_field ''product_item'',''product_id'', :value=>product.id%>) But I don''t know syntax for hidden field(like <input type=hidden> in HTML). Please tell me. Thanx in advance. Prash -- Posted via
2006 Mar 28
1
graphing solutions
Hi all, This might be OT. Wondering what are available charting solutions that work well with Ruby on Rails. I''ve seen reference to a few but they all seem to rely on integration with a program written in another language (requiring a seperate process per chart), Perl''s GD module for instance. Is there a 100% Ruby charting library that is freely available? Thanks, Dave
2006 Apr 11
3
Web services and security
Hi all, How do folks generally secure their Rails web services? A password in a config file? A ''webservice'' user in a ''Users'' table with its own password? LDAP authentication for every method? Only authenticate on the "important" methods? Something else I''m not thinking of? I''d like to be secure, yet practical, for the sake
2006 Apr 13
4
Rails with existing RDBMS schema
Hi, I''m seriously considering using Rails to develop several internal corporate web apps that will need to interact with well-established database systems (3 systems running SQL Server, Oracle, and PostgreSQL). The schema on these systems are basically set in stone. Can a Rails application interact with an existing schema without serious Rails modification? From what I''ve
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