[Rails] Problems while moving to a new-alike method

2009-07-24 Thread vimal
::RecordNotFound in LicensesController#show Couldn't find License with ID=new_trial_license RAILS_ROOT: /home/vimal/Projects/license_manager/ Application Trace | Framework Trace | Full Trace /usr/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/ base.rb:1528:in `find_one' /usr/lib/ruby/gems/1.8

[Rails] Re: Problems while moving to a new-alike method

2009-07-24 Thread vimal
Thanks Fred :) Regards, Vimal Das --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group

[Rails] rendering images through JS in rails

2009-04-28 Thread vimal
to a solution. Please help. Regards, Vimal Das --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from

[Rails] Re: reset_sessions how to?

2009-04-27 Thread vimal
Have you tried: rake db:sessions:clear it says - uninitialized constant ActiveRecord I am not using active_record for storing session information. it is the cookie store session as Fred has suggested. Would i be able to trap the Ctrl-c interrupt and then call reset_session? But i dont

[Rails] Re: reset_sessions how to?

2009-04-27 Thread vimal
suggested solution is only possible if Ctrl-c interrupt is trapped and then routed to the proceedure Regards, Vimal Das --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group

[Rails] reset_sessions how to?

2009-04-26 Thread vimal
some suggestions, since i am stuck with this for a long time Regards, Vimal Das --~--~-~--~~~---~--~~ 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

[Rails] Re: reset_sessions how to?

2009-04-26 Thread vimal
. Thanks and Regards, Vimal Das --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email

[Rails] How to reset session if rails server is killed abruptly using Ctrl-c

2009-04-06 Thread vimal
Hi, I have some user informations stored in the session. If i use Ctrl-c to kill the rails server and restart the server, the informations remains in the session I want the session informations gone, once i restart the server Any suggestions? Regards, Vimal Das

[Rails] Storing information in session in rails - How to ?

2009-04-01 Thread vimal
But i keep on getting the error Symbol as array index Am i going wrong anywhere, please suggest Thanks and Regards, Vimal Das --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[Rails] Log in and log out help

2009-04-01 Thread Vimal Tailor
Hey, i was wondering if anyone could tell me how to do a login and logout page for a rails application? thanks -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on

[Rails] Re: Storing information in session in rails - How to ?

2009-04-01 Thread vimal
only once and store the connection variable in session like -- session[:server_conn] = @server_conn 2) Request a cookie after authentication ad store that in session like -- session[:cookie] = @cookie So that i can access the session variables in other controllers too Regards, Vimal Das

[Rails] Re: Tutorials

2009-03-30 Thread vimal
http://guides.rubyonrails.org/ is good, check it out Regards, Vimal Das --~--~-~--~~~---~--~~ 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

[Rails] - 2.3.2 uninitialized constant ApplicationController

2009-03-21 Thread vimal
Hi, I just migrated from rails 2.2.2 to 2.3.2 The rails app was running fine until i migrated I checked for the application.rb in the controller folder and its there Any suggestions, why this is happening??? Regards, Vimal Das --~--~-~--~~~---~--~~ You

[Rails] Re: - 2.3.2 uninitialized constant ApplicationController

2009-03-21 Thread vimal
Cool! Thanks Noria... Is the rails version 2.3.2 an edge version? Regards, Vimal Das --~--~-~--~~~---~--~~ 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

[Rails] Re: - 2.3.2 uninitialized constant ApplicationController

2009-03-21 Thread vimal
Thanks for the reply Conrad :) Regards, Vimal Das --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe

[Rails] Re: Getting Rails to send email

2009-03-21 Thread vimal
= Ruport::Report.new r.add_mailer :default, :host = localhost, :address = x...@xxx.com r.send_to(email_id) do |mail| mail.subject = Some subject mail.text = Some text mail.html = h1Hello World/h1 end For further info. check ruport documentation Regards, Vimal Das

[Rails] Re: Converting Array to String in a model using before filters

2009-03-20 Thread vimal
Thanks again Fred to make me try this out... I got it after analysing ur reply further So the trick is not to add a attr_accessor for lists_selected Regards, Vimal Das --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[Rails] Re: Converting Array to String in a model using before filters

2009-03-20 Thread vimal
Thanks again Fred to make me try this out... I got it after analysing ur reply further So the trick is not to add a attr_accessor for lists_selected Regards, Vimal Das --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[Rails] Implementation checkbox array in rails--How to?

2009-03-19 Thread vimal
== please suggest, am i going wrong anywhere, i am getting confused with formhelpers docs as most of the examples are portrayed with checkbox_tag Thanks n Regards, Vimal Das --~--~-~--~~~---~--~~ You received this message because you

[Rails] Re: Implementation checkbox array in rails--How to?

2009-03-19 Thread vimal
Huh :-| Thanks very much Fred Got it at last... :-) Regards, VImal Das --~--~-~--~~~---~--~~ 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

[Rails] Converting Array to String in a model using before filters

2009-03-19 Thread vimal
' is stored in the table. Please help me out off this guys. Regards, Vimal Das --~--~-~--~~~---~--~~ 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@googlegroups.com

[Rails] Re: Converting Array to String in a model using before filters

2009-03-19 Thread vimal
    I have a list coming in a field like :selected_lists = [1,2,3,4] from a form Correction :selected_lists = [1,2,3,4] to - :lists_selected = [1,2,3,4] Regards, Vimal Das --~--~-~--~~~---~--~~ You received this message because you are subscribed

[Rails] Re: Converting Array to String in a model using before filters

2009-03-19 Thread vimal
So, is there anyother way to carry this out of the box Regards, Vimal Das --~--~-~--~~~---~--~~ 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

[Rails] Re: Rails Magazine Issue #1 - Free Download

2009-03-14 Thread vimal
Cool :) I think i'm gonna check it out Congrats! Regards, Vimal Das --~--~-~--~~~---~--~~ 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@googlegroups.com

[Rails] storing and retrieving arrays in mysql using rails

2009-03-13 Thread vimal
Hi, I have a multiple checkbox of values 1 to 7 for selecting weekdays. What is the possibility of storing the selected weekdays array in mysql and what type of field should i create in the table for storing the array. Any suggestions??? Regards, Vimal Das

[Rails] Importing application constants into models and backgroundrb workers - How To?

2009-03-09 Thread vimal
Any suggestions??? Regards, Vimal Das --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group

[Rails] Re: Importing application constants into models and backgroundrb workers - How To?

2009-03-09 Thread vimal
Cool.Thank you. :) Vimal Das --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send

[Rails] Protecting an associated record from destroying -- How To and explanation?

2009-03-09 Thread vimal
a schedule u need to a pattern also. Then i removed the pattern which was used by a schedule. How can i avoid this action. I wonder then whats the reason of having these relationships Is there any additional things reqd. for me to do Regards, Vimal Das

[Rails] Retrieving all values of the column from the table

2009-03-05 Thread vimal
to the function, it returns all the column values in an Array I dont know whether i am doing it right or not Any suggestions Thanx, Vimal Das --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group

[Rails] Re: Retrieving all values of the column from the table

2009-03-05 Thread vimal
I tried it Fred,but it didn't work Instead this did the job for me class Pattern def self.get_all(field) @patterns = Pattern.find(:all) @patterns.collect do |pp| pp[field] end end end Regards, Vimal Das --~--~-~--~~~---~--~~ You received

[Rails] before_filter - How to?

2009-03-04 Thread vimal
implementation Regards, Vimal Das --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email

[Rails] Re: Problem with backgroundrb!!!

2009-03-03 Thread vimal
I corrected it myself, the directory has to be named to backgroundrb inside the vendor/plugins --~--~-~--~~~---~--~~ 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] Re: Problem with backgroundrb!!!

2009-03-03 Thread vimal
Hi, Iam getting another error, this time it looks like ---

[Rails] Re: Problem with backgroundrb!!!

2009-03-03 Thread vimal
Finally i got it after 2 days uninstalling and installing again and again did the job for me still i am unable to figure out the problem which caused it --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails:

[Rails] Re: Problem with select_tag

2009-02-27 Thread vimal
i guess the select tag should be represented as form.select_tag --~--~-~--~~~---~--~~ 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@googlegroups.com To

[Rails] Re: Problem with select_tag

2009-02-27 Thread vimal
use it as a symbol :organelle rather than as a string organelle make sure the :organelle field is made available in ur model seqfeature --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To

[Rails] Re: blacklist

2009-02-27 Thread vimal
install the RedCloth plugin using gem --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group,

[Rails] Re: blacklist

2009-02-27 Thread vimal
whenever u r unfamiliar with the gem try: gem search RedCloth --remote gem install Redcloth --~--~-~--~~~---~--~~ 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] Re: Q: find :include

2009-02-27 Thread vimal
what exactly do you want to do??? for me it looks like you want all the posts for the particular user then it should be @posts = User.posts --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group.

[Rails] Re: form_remote_tag

2009-02-27 Thread vimal
do |form| --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email to

[Rails] Re: blacklist

2009-02-27 Thread vimal
I haven't used blacklist either I just traced the error in ur code --- c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require': no such file to load -- RedCloth (MissingSourceFile)

[Rails] Re: Problem with select_tag

2009-02-27 Thread vimal
I am a little busy for better understanding http://guides.rails.info/form_helpers.html --~--~-~--~~~---~--~~ 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] i18n Rails version compatibility?

2009-02-22 Thread vimal
Hi, I just want to know whether i18n is compatible with Rails-2.1 I am a newbie in rails, i heard of globalisation plugin also. So which one is the best to work with and if any other suggestions, i would appreciate that In love with Ruby and Rails

[Rails] Re: again and again: no such file to load -- mysql

2009-02-18 Thread vimal
Have you ensured whether your mysql services are running Regards, Vimal --~--~-~--~~~---~--~~ 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