Displaying 13 results from an estimated 13 matches for "navjeet".
2006 Jan 05
3
MS SQL server connection problems
...sername => "TestUser",
:password => "TestUser",
:host => "machine.domain.com",
:database => "MY_DB,1150")
I can connect to the database from my machine using DBVisualizer, using
the same parameters.
What could be the issue here?
--Navjeet
--
Posted via http://www.ruby-forum.com/.
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 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 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 Aug 16
0
Capistrano issues on VPS
...RAILS_ENV
to production, the rails app runs in production mode.
I guess I can resolve these issues by customizing the capistrano
deployment recipe by doing these additional tasks but I was wondering
what strategies are being used by other Ruby on Rails users VPS accounts
like Rimu Hosting.
--Navjeet
--
Posted via http://www.ruby-forum.com/.
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
2007 Apr 07
2
functional test question
...hashes?
I tried the following that did not work
get(:create, [:user => {:firstname => ''xxx'', :lastname =>
''yyyy''}, :school => {:id => 1}] )
It seems to pick only the first array element.
Anybody run into this issue and knows how to do this?
-Navjeet
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send...
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 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
2006 Jul 01
3
best approach to add form elements dynamically
I am struggling with how to add dynamically add form elements to a form
based on user action. Now here is my situation:
I have model Project that has_many line_items
On the form to create a project I initially display form elements (some
drop downs and text boxes) for adding just one line_item. There is also
a button or a link on the page (not sure if this should be in the main
form or