search for: yashgt

Displaying 20 results from an estimated 23 matches for "yashgt".

Did you mean: yacht
2006 Apr 05
7
Regex for splitting string
Hi We have a search website where the user can type in individual words separated by spaces and/or phrases enclosed in single or double quotes. We are looking for a way to obtain a list of words and phrases from the search string. Can someone help? Thanks, Yash -- Posted via http://www.ruby-forum.com/.
2006 Mar 01
6
How to retrieve attributes from HABTM?
We have tables Users and Communities linked by has_an_belongs_to_many. The join table Communities_Users has additional fields [ is_active, is_blocked, join_date] etc. These are populated using @user.push_with_attributes(:is_active => true,...). Later on how do we update or retrieve the attributes in the link table for a given user or a community with doing it explicitly using SQL? Thanks,
2006 Feb 08
2
How to install RailsCron?
Hi, I would like to start running a background procedure once a user logs in to his account on the website. For this I am considering using the RailsCron object. However, I am not able to download it. I am new to Rails. Can someone give me the excat command I should use to get RailsCron? Can someone suggest a better way of running a procedure in the background? Thanks -Yash -- Posted via
2006 Mar 30
1
What is the entry-point for a rails app?
Hi, I would like to run a DOS command such as "net send ..." when I start the rails application using script\server. Can you please tell me where I need to put the call? Is it environment.rb by any chance? -Yash -- Posted via http://www.ruby-forum.com/.
2006 Feb 11
1
How to POST raw data?
Hi, I know that ActionController::AbstractRequest provides a raw_post method that reads the data that has been posted to the HTTP server as raw data. I am trying to create a rails application that POSTs raw XML data to a web page that reads raw data. I would like to know how to POST raw data to an HTTP server using Ruby on Rails. Can you help me with this? Thanks, Yash -- Posted via
2006 Feb 11
1
Instructions required for RailsCron
Hi, I am writing a client-server rails app. The client and server maintain similar databases. Periodically, I would like them to synchronize their databases. For this, in the application, once the user logs in, I want to spawn a background process at the client that first sends the client''s new data and then receives the server''s new data. I am thinking of using RailsCron for
2006 Jul 26
0
How to Globalize using variants of templates?
Hi, We have a web application running on Ruby on Rails 1.0, with all RHTML files stored in the standard app/views/controller directories. The static content, messages, etc. in all the templates are in US English. We hope to release the website in other languages. We are considering the use of the Globalize plugin from http://svn.globalize-rails.org/svn/globalize/globalize/trunk/ The layout of the
2006 May 01
0
Obtaining the name of the host in environment.rb
Hi, For testing purposes, we deploy our app on different PCs. In the environment.rb file , we would like to set a constant to the name and port of the host. Is there a function that we can call to obtain the host and port when called from environment.rb? Ideally we want something like SVR=host_and_port() Remember, we cannot use ActionController#host_with_port because we are not in an action.
2006 May 30
0
Performance problem with Apache-FCGI-Rails
We have our Rail 1.0 application running on Apache 1.3 with FastCGI. The httpd.conf has : <IfModule mod_fastcgi.c> FastCgiIpcDir /tmp/fcgi_ipc FastCgiServer /root/zs/public/dispatch.fcgi -processes 2 FastCgiConfig -autoUpdate -initial-env RAILS_ENV=production -idle-timeout 120 -maxClassProcesses 2 -killInterval 300 </IfModule> The dispatch.fcgi is the default provided in the
2006 Apr 02
1
Looking for helpers/components/controllers for form wizards
Hi, In our project, we have a number of forms to be filled by the users. The forms are presented as wizards - each form as a number of steps. I would like to know whether there is an existing helper developed by the Rails community that can let me create wizards easily. We also want all wizards to have the same look and feel. Thanks, Yash -- Posted via http://www.ruby-forum.com/.
2006 Apr 04
1
Keeping 2 different sessions active together
Hi, Our web application shows pages from 2 different web servers. Each web server has a session timeout period of 30 min. If I access pages from just one server for 30 min without touching any page from server2, the session on server2 expires. Then when I access a page from server2, I get a warning saying the session is expired. For a normal user, we are projecting the whole app to be a
2006 Apr 18
1
Pagination links with separator
Hi, I have @result_pages and @results obtained from paginate in an action. I want to show the pages as 1 | 2 | 3 | 4 > The fifth page will show: < 5 | 6 | 7 | 8 > and so on. How exactly do I render the paginator to give this effect? I guess I will have to use pagination_links_each. But being new to Rails, I need help. Thanks, Yash -- Posted via http://www.ruby-forum.com/.
2006 Mar 02
0
Displaying date-time based on regional settings
The way date and time is written, is different among countries. In Rails, how can we display date and time in the local format based on the regional settings? Thanks, Yash -- Posted via http://www.ruby-forum.com/.
2006 Mar 11
0
Client-side validation in Rails?
We have around 80 forms in our web application. We would like to perform some validation checks before the user submits the form. Is there some magic provided by Rails to help us achieve this? The models have validations specified. But I guess they will be executed only once the form data is being saved. So that''s not what we are looking for. Thanks, Yash -- Posted via
2006 Mar 13
1
How to run rails app exe on port other than 3000?
We have managed to package our rails application into an exe using the steps given at: http://www.erikveen.dds.nl/distributingrubyapplications/rails.html When we start the exe, it starts on port 3000. But when we will be installing it at the clients'' site, this may not work as some other rails application may be running on that port. What can we do to configure the port on which the
2006 Mar 15
1
push_with_attributes not inserting default values
I have a join table A_B with columns[a_id, b_id, c_data default 1, d_data default 1]. If I do: @aobj.bobjs.push_with_attributes(@bobj,{:c_data => 0}) I find that the row inserted, has d_data set to 0 and not the default value specified in the database, which is 1. So I am having to explicitly set it using : @aobj.bobjs.push_with_attributes(@bobj,{:c_data => 0, :d_data => 1}). Is this
2006 Mar 15
1
AJAX + Rails question
We display a set of users in a TABLE. The rows have buttons that allow a user to be Deleted and marked as Super user. When any of these buttons get clicked, we would like that individual row to be either deleted or updated to reflect the new status. How do we achieve this using AJAX in Rails? Thanks, Yash -- Posted via http://www.ruby-forum.com/.
2006 Feb 04
2
Looking for tools developed on Rails
Hi, We are trying to setup a tool developed on Ruby on Rails, that provides a Project Dashboard, with the following features: Abstract of the project. Task list Calendar The task list should provide: Task Name Owner Start and end dates %completion Dependency, etc. The Calendar should provide Day, Week and month views. Can you please suggest some tools with available source code that loosely
2006 Feb 09
0
Need help with REST using Rails
I am using the rest_resource.rb file available from the article: http://www.xml.com/pub/a/2005/11/02/rest-on-rails.html?page=1 This script provides a method respond to a post request that sends an XML to the server to update the database. It also responds to a get request with a response containing an XML with data from the database. I would like to use this between two processes, to
2006 Feb 25
1
How to pre-populate Edit form in rails?
In our rails application, there is a model called Essay and another called Tag. Essay ''has_and_belongs_to_many'' tags. When a user CREATEs an essay, he gives the text in a text field which corresponds to a database column in the essays table. The _form.rhtml also provides a text area that lets the user tag the essay with keywords. The text area does not correspond directly to