[Rails] Free tickets to hack.summit() - A Virtual Programming Conference Featuring Top Programmers

2014-11-18 Thread surabhi
Hi everyone, Just wanted to let you know about a special opportunity for subscribers to this group. We're hosting a* virtual conference called hack.summit() taking place December 1-4*, where you can learn from some of the best programmers in the world. An unprecedented line-up of

[Rails] rails validates format with

2012-02-13 Thread Venkat Surabhi
I want to dynamically validate my password with validates_format_of . validates_format_of :password,:with = need to get regular expression dynamically based up on the object setting. class Admin AR::Base validates_format_of :password,:with = lambda {|admin| admin.get_regular_exp} def

[Rails] calendar date select

2012-02-01 Thread Venkat Surabhi
Hi, In my application I am using calendar_date_select gem to pickup date and time from browser. The problem I am facing is: My application server is in us and when I tried to access the application from my machine(India) the calendar_date_select returns the time of my local

[Rails] Paperclip preserve files ?

2012-01-25 Thread Venkat Surabhi
Hi, I am using paperclip to upload files. The problem I am facing is, based on my object property I need to preserve my file. Means my object should be deleted from db but the file need to be restored. I am using the option :preserve_files = true. If I keep the above option in

[Rails] Prawn : undefined method `make_table'

2010-12-01 Thread Venkat Surabhi
require 'prawn' require 'prawn/core' require 'prawn/layout' Prawn::Document.new do |pdf| subtable = pdf.make_table([[ foo, bar ], [ baz, bax ]], :column_widths = [ 50, 50 ]) { column(0).background_color = 808080 cells.borders = [] } table

[Rails] Re: How to development Database for testing

2010-08-17 Thread Rajkumar Surabhi
Marnen Laibow-Koser wrote: hi, May be but i need it to use single development database for both enviroments -- 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 this group, send email to

[Rails] How to development Database for testing

2010-08-16 Thread Rajkumar Surabhi
Hi, i want to use development database for my testing purpose. The problem is with, when test cases are run, it deletes the data before and after the test. but i dont want the data to be deleted. how to do this. -- Posted via http://www.ruby-forum.com/. -- You received this message because you

[Rails] Re: How to development Database for testing

2010-08-16 Thread Rajkumar Surabhi
Anubhaw Prakash wrote: Rajkumar Surabhi wrote: Hi, i want to use development database for my testing purpose. The problem is with, when test cases are run, it deletes the data before and after the test. but i dont want the data to be deleted. how to do this. Hi Rajkumar, You can

[Rails] Foreign key

2010-07-08 Thread Rajkumar Surabhi
HI all, In my application i have 2 tables, 1.logins and 2. credits. logins contains customer details and credits has credit detils of customers. i have given custom foreign key while migrating database for credits table instead of logins_id i have given as log_id. how to mention this in model

[Rails] count the hits on page

2010-07-03 Thread Rajkumar Surabhi
Hi, I want to count the hits on my web site. how to do this by using ror application -- 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 this group, send email to

[Rails] count the no of requests

2010-06-25 Thread Rajkumar Surabhi
in my application i have 10 static webpages linked to home page. I want to count the no of hits on the webpage. how to do this. I have to count the hit when we access the page directly by using url inner pages. -- Posted via http://www.ruby-forum.com/. -- You received this message because you

[Rails] delete stale sessions in ror web application

2010-06-17 Thread Rajkumar Surabhi
hi, in my webapplication, user logins into application. i want to delete the stale sessions. and while before deleting the stale session auomatically i need perform on some operations on database. how to do this Regards, Rajkumar -- Posted via http://www.ruby-forum.com/. -- You received this

[Rails] plugins error

2010-05-20 Thread Rajkumar Surabhi
HI, in my applicaition i want to use automatic sesssion cleaning. i followed the website http://agilewebdevelopment.com/plugins/limited_sessions I have download this plugin, then configured session life time in environment.rb like CGI::Session::ActiveRecordStore::Session.recent_activity_limit

[Rails] Type Error , can't dup NilCLASS

2010-05-10 Thread Rajkumar Surabhi
HI, In myapplication i am sending mails using ruby actionmailer. I have 2 different actions 2 diff types of mails. fisrt one is working fine. when i tried to send mails from 2nd action i am getting the error. I attached the fulltrace of the error TypeError in LoginsController#reseller can't dup

[Rails] sessions

2010-05-03 Thread Rajkumar Surabhi
hi all, in my application i have to maintain the user information in session and updates the table flag when the user logins and while loggingout i change the flag to zero. i want to delete the stale sessions and while doing this i want to perform operation on tables how to do this. Please let

[Rails] Sessions

2010-04-26 Thread Rajkumar Surabhi
hi all, in my application, i have login form. while login into the application iam maintaning the details in session. i want to remove the stale sessions and while removing the stale sessions i want to perform some operattions on database . how to do this. Regards, Rajkumar -- Posted via

[Rails] displaying contnet

2010-03-27 Thread Rajkumar Surabhi
hi all, i am using text filed to store the database using textarea. i have entered the data line by line. while displaying also i want to display the content line by line but when i gave like this record.methodname itts giving in a single line how to do this -- Posted via

[Rails] caching fragement

2010-03-26 Thread Rajkumar Surabhi
HI all, in my application i have index action. i called cache for this index by using cache_page :index and in index.erb page i called another partila page using and cached the fragment using %cache 1 do% %...@someobjects=tablename.find(:all)%

[Rails] Active Record relations

2010-03-25 Thread Rajkumar Surabhi
HI all in my application , i have 2 tables subjects and teachers. the relation is one to many. i have to display the subjects first and when i click on the subjects i have to display the teachers. and i have to add the new teacher to the teachers table by selecting the subject. how to do this

[Rails] how to add current time as default value

2010-03-19 Thread Rajkumar Surabhi
hi all, by using timestamps we can create created_at and updated_on columns to our tables. But i dont wnat the columns in my table and i want to add my own column which datatype is timestamp and that must take current_timestamp or now as default value. how to do it re -- Posted via

[Rails] migration

2010-03-18 Thread Rajkumar Surabhi
Hi all, I have migrated with some tables in my application. After some days i need to add few more tables to database. The initial tables in database have some data. when i try to migrate the database for second time with rake db:migrate it is saying the alredy table exist table name and rake is

[Rails] IOError while rendering and redirecting

2009-07-04 Thread Rajkumar Surabhi
HI all, I am getting IOError while rendering view or redirecting. If i refresh the page the actual page is displaying. Please tell me wht is the problem and how to solve the problem. Regards, Raju -- Posted via http://www.ruby-forum.com/.

[Rails] Re: uploading csv

2009-01-02 Thread Rajkumar Surabhi
rather than re parsing the whole file all together. -NAYAK On Tue, Dec 30, 2008 at 6:26 PM, Rajkumar Surabhi -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby

[Rails] uploading csv

2008-12-30 Thread Rajkumar Surabhi
hi all, in my project i have to upload the csv file.i want to show the data of the file before submitting the form. how to do it..plesae help me its very urgent.. -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because

[Rails] Re: uploading csv

2008-12-30 Thread Rajkumar Surabhi
30, 2008 at 6:26 PM, Rajkumar Surabhi thanks for ur reply... but i dont know how to do it as iam new bee to rails.iam aware of ajax and parsing.. is there any websites if plesae sugest them or if u have code plesae send me -- Posted via http://www.ruby-forum.com

[Rails] send email

2008-12-26 Thread Rajkumar Surabhi
hi all in my project i have to send image as signaturre templeate by using action mailer as like we send from gmail or any other. is it possible to send like that. if hw to do it please help me. -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You