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 programmers
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 get_re
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 machin
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 mod
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 = []
}
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 r
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.
&g
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
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 a
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 rubyonrails-t...@googleg
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 a
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 m
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
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
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 m
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 htt
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 http://www.ruby-forum.c
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)%>
<%=render(:partial=>'index2',:collection=>@so
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
-
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 http://www
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 and
rake is aborted. i
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/.
--~--~-~--~~~---~--~---
ad the same parsed value
> 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 b
ll together.
>
> -NAYAK
>
> On Tue, Dec 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
-
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 yo
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 r
26 matches
Mail list logo