search for: chabbewal

Displaying 11 results from an estimated 11 matches for "chabbewal".

2006 Jan 28
8
how to pass search parameters to pagination links
I have a search page with a text_field as below <%= text_field ''program'', ''program_name'' %> After I perform the search in my controller I go to a search results view which shows search results and uses Rails pagination. Now how to pass the search paramters (i.e. params[:program][:program_name] in my controller) to the pagination links (next and
2006 Jun 01
5
Content Management System
I am looking for a good CMS based on Rails that has at least these attributes: 1. Ease of use ( as it will be used by people who are not html literate) 2. Very easy/flexible to change layout. So far I have looked at http://rcms.oopen.de/Home/ (have not installed it yet) http://adminpages.flowdev.de http://demo.radiantcms.org/admin/pages http://www.eribium.org/eribium/ MuraveyWeb does not seem
2006 Jan 17
2
change error messages for Validation helpers?
Is it possible to change error messages for Validation helpers? I am writing an app against a existing database (so no control over column names), but when there is validation error (e.g. with validate_presence_of) I would like to customize the field name. For example for telephone whose field name is PhoneNumber I would like to chnage it to "Telephone Number cannot be empty" rather
2006 Jul 04
3
act_as_state_machine plugin inaccessible
Seems like act_as_state_machine plugin is not accessible from http://lunchroom.lunchboxsoftware.com/articles/2006/01/21/acts-as-state-machine as this site is down and script/plugin discover is broken as it fails when trying to add plugin repositories giving the message as below; Add http://svn.northpub.com/plugins/? [Y/n] y (eval):3:in `each'': undefined method `[]'' for
2006 Apr 23
1
file_column does not work with update model
When I am creating a model, everything works but not during update (where I use Model.update_attributes(model_attributes) ). I get the error: Do not know how to handle a string with value ''image_xxx.jpg'' that was passed to a file_column. Check if the form''s encoding has been set to ''multipart/form-data''. The form is indeed multipart. Does
2006 Feb 01
1
Rails pagination problem
I am having this problem with pagination query in my controller class. I am using SQL server and following code to create pagination fails, complains about column name ''program_name'' (which is valid column/attribute of program) The error message is: DBI::DatabaseError: S0022 (207) [Microsoft][ODBC SQL Server Driver][SQL Server]Invalid column name
2006 Jan 04
2
how to display validation error messages for multiple record form
I am trying to figure out how to display model validation error messages for a multiple record form. My form is for setting up new accounts and collects information for two models - Accounts and Users. My create method collects the parameters from the form and adds them to a Account object and a User object then runs account.valid? and user.valid?. If it''s valid it updates the models
2006 Jan 05
3
MS SQL server connection problems
I am trying to connect to a remote sql server and I am getting the following error: c:/ruby/lib/ruby/site_ruby/1.8/DBD/ADO/ADO.rb:57:in `connect'': Open (DBI::Databa seError) OLE error code:80004005 in Microsoft OLE DB Provider for SQL Server [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied. HRESULT error code:0x80020009 Exception
2006 Aug 16
0
Capistrano issues on VPS
Anybody out there using Capistrano to do remote deployments of Ruby on Rails apps on Rimu hosting? I am having a couple of issues with remote deployment ( I am doing deployment from my windows pc using cygwin). I am using Apache to run Rails as per setup described at http://bliki.rimuhosting.com/space/knowledgebase/linux/miscapplications/ruby+on+rails First one has to do with the fact that
2006 Feb 10
0
Update two models that have belongs_to relationship
I have model Program and model PointOfContact. Program belongs to PointOfContact. There is a form to update values, which shows attributes from both models on one form. What is the best way to update the models with one call. I tried this and it did not work Controller code: @program_old = Program.find(params[:id]) @program = Program.new(params[:program]) @program.id =
2006 Jan 24
0
Showing error messages for two models as one heading
I have two models Program and PointOfContact and here is their relationship Program belongs_to PointOfContact PointOfContact has one Program There is a single form to input a program and it''s associated point of contact information. The default behaviour in Rails seeems to be to show two different error messages (boxes) on the top of the form if there are validation errors in both