[Rails] Re: how to download the source

2009-04-17 Thread Vaibhav Deshpande
David Knorr wrote: > On 16 Apr., 18:10, Vaibhav Deshpande s.net> wrote: >> How to download the source from rails cast (www.railscasts.com)website, >> i have seen the will_paginate(episode -51) rails cast but, i unable to >> download the source coad of that screen cast, p

[Rails] how to download the source

2009-04-16 Thread Vaibhav Deshpande
How to download the source from rails cast (www.railscasts.com)web site, i have seen the will_paginate(episode -51) rails cast but, i unable to download the source coad of that screen cast, plz tell me the method to download or read that coad so that i can understood that coad more efficiently. pl

[Rails] Data is not passing from Form to controller actions

2009-04-09 Thread Vaibhav Deshpande
How to render the data from form to controller actions? This is my controller:- class ViewController < ApplicationController def index end def new @txt=params[:txt] end end Index Page:- New Page:- View#new Find me in app/views/view/new.html.erb Hello <%= @txt %> <%= l

[Rails] Re: Finding record between 2 dates

2009-04-09 Thread Vaibhav Deshpande
Andrew Timberlake wrote: >> I used @date2ss = Date2.find(:all, :conditions => "ID > '"+ @date1 +"' >> and ID <'"+ @date2+"'") and it works.. >> thanks, >> Vaibhavi >> -- > > You can also use > Model.find(:all, :conditions => {:date => date1..date2}) > > > Andrew Timberlake > http://ramblingsonr

[Rails] Re: Facing problem while running db migrate

2009-04-09 Thread Vaibhav Deshpande
Darshana Gangwal wrote: > Darshana Gangwal wrote: >> Yes, c:\ruby\bin\rake exist.. >> There are two rake files: >> 1. rake file of type Windows Command Script >> 2. rake file of type Windows Batch File >> >> Is this creating a problem? > Anybody know's how to solve this error? > Its urgent!

[Rails] Calender Control

2009-04-09 Thread Vaibhav Deshpande
I want to use the calender control in my application like what i added in the attachment file for, from date and to date it should display records but i unable to attach it in ruby on rails application well its working fine in Dot Net too... I want to show the records between first and the second

[Rails] Re: Finding record between 2 dates

2009-04-09 Thread Vaibhav Deshpande
Robert Walker wrote: > Vaibhav Deshpande wrote: >> I am very new to ruby on rails programming, >> I am using the oracle as my database, >> >> In my project there r 2 text box fields and in first and second text >> boxes i want the date field to be enter by the

[Rails] Finding record between 2 dates

2009-04-08 Thread Vaibhav Deshpande
I am very new to ruby on rails programming, I am using the oracle as my database, In my project there r 2 text box fields and in first and second text boxes i want the date field to be enter by the client and want to display the record between those 2 dates how can i do the same, plz be more spec

[Rails] Url problem.....

2009-04-06 Thread Vaibhav Deshpande
I contain oracle as my database having table "oratest11",contails 2 fields as (id_field(Number),data(varchar2(20)) a sequence as "oratest11_seq" which is incrementing the value of id_field My model is as follows:- class Oratest11 < ActiveRecord::Base set_table_name 'oratest11' set_primary_ke

[Rails] Url problem.....

2009-04-06 Thread Vaibhav Deshpande
Frederick Cheung wrote: > On Apr 6, 9:10?am, Vaibhav Deshpande s.net> wrote: >> I am working with a legacy oracle database. The >> primary key is not defined as an integer but as a number. >> This results in a url with an id as a number, such as 1234.0 instead >>

[Rails] Converting Number into Integer in ruby

2009-04-06 Thread Vaibhav Deshpande
I am working with a legacy oracle database. The primary key is not defined as an integer but as a number. This results in a url with an id as a number, such as 1234.0 instead of 1234. It works fine, but I would prefer 1234 to be displayed in the url. I have attempted to redefine the model id metho

[Rails] Re: Converting decimal primary key to integer (oracle)

2009-04-06 Thread Vaibhav Deshpande
I am also having the same prob plz help me if u get the solution thanks, vaibhav -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to

[Rails] Re: connecting model class to different column name other tn

2009-04-04 Thread Vaibhav Deshpande
Siddick Ebramsha wrote: > Use the set_primary_key method. I used this method as follows class Item < ActiveRecord::Base set_table_name 'item' set_primary_key 'id_field' end and now its working properly, Thanks you, for your good response!! Keep responding me. -- Posted via http://w

[Rails] connecting model class to different column name other tn id

2009-04-03 Thread Vaibhav Deshpande
wrote: I am using the allready created tables in oracle and connecting to the ruby on rails model class, i used 'set_table_name 'table name' ' and it gets connected but, i want to access its records and it has different id field name as field_id, i want to access its record making field_id field

[Rails] Re: RSA signing with Ruby OpenSSL

2009-04-03 Thread Vaibhav Deshpande
vaibh...@gmail.com wrote: I am using the allready created tables in oracle and connecting to the ruby on rails model class, i used 'set_table_name 'table name' ' and it gets connected but, i want to access its records and it has different id field name as field_id, i want to access its record