[Rails] Re: PDF format of Rails Guides

2011-09-29 Thread Veera Sundaravel
Rubyist Rohit wrote in post #1014545: > Is there a downloadable PDF version Rails Guides? Try this - http://veerasundaravel.wordpress.com/2011/01/07/pdf-documents-from-ruby-on-rails-guides/ -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to th

[Rails] Ruby On Rails Ebooks – Free downloads

2010-10-04 Thread Veera Sundaravel
Some popular Ebooks for Ruby on Rails beginners and as well as for experts. You can find the download links with book name. http://wp.me/pkAKm-4K -- Regards, T.Veerasundaravel. http://tinyurl.com/25vma7h @veerasundaravel -- Posted via http://www.ruby-forum.com/. -- You received this message

[Rails] Re: what is that get in routes?

2010-09-28 Thread Veera Sundaravel
Can you please post the entire content of routes.rb. And what is your rails version and any other routes based plugins are installed in your application? -- Regards, T.Veerasundaravel. http://tinyurl.com/25vma7h @veerasundaravel -- Posted via http://www.ruby-forum.com/. -- You received this

[Rails] Re: Re: Chat Application

2010-09-23 Thread Veera Sundaravel
Yes xmpp3r with ruby is a good Idea. http://devblog.famundo.com/articles/category/xmpp4r-jabber There are 3 articles related to the integration. Regards, T.Veeraa. http://tinyurl.com/25vma7h @veerasundaravel shyam mohan wrote: > Hi ... > > try this ... > http://rubypond.com/blog/make-your-o

[Rails] Re: partials issue

2010-09-21 Thread Veera Sundaravel
pass the seat variable with your render call something like this, <%= render 'form', :locals => { :seat => @seat } %> -- Regards, T.Veerasundaravel. http://tinyurl.com/25vma7h @veerasundaravel -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed t

[Rails] Re: Validation :if option with Class vars

2010-09-21 Thread Veera Sundaravel
just modify the condition as follows: :if => Proc.new{|my_class| MyClass.feature_is_enabled} (or) :if =>Proc.new{|whatever| MyClass.feature_is_enabled} The problem is you used MyClass as constant instead of variable. Just using the lowercase letter will solve ur problem. -- Regards, T.Veeras

[Rails] Re: mysql port info

2010-09-21 Thread Veera Sundaravel
Awijeet Mr. wrote: > I want to create an API for my web application so i need access on > mysql. > for that I need following info... > > database host-name and that I am unable to get... > > > Thanks you can simply use localhost as your host-name. And if you have login-details to ur mysql ser

[Rails] Re: Calling a non-default method of my controller in my views?

2010-09-21 Thread Veera Sundaravel
rodrigo3n wrote: > Hello everyone, I have a messages_controller, inside this controller, > among all the default methods I have a tweet method that sends the > message to twitter, and aside the 'edit' and 'destroy' links I want a > 'tweet You can specify this 'tweet' method as a member action of y

[Rails] Re: Problem With Active Record. Associations Showing Error ..ple

2010-09-17 Thread Veera Sundaravel
If you are much interested in Rails Associations means, refer these URLs. http://guides.rubyonrails.org/association_basics.html http://api.rubyonrails.org/classes/ActiveRecord/Associations/ClassMethods.html -- Regards, T.Veerasundaravel. http://tinyurl.com/25vma7h @veerasundaravel Sudhir Vish

[Rails] Re: Search inside files

2010-09-17 Thread Veera Sundaravel
Vincenzo Ruggiero wrote: > Hello all, > > Do you have more informations about developping a search functionnality > to search inside PDF, Word, Excell, ... files ? > > I think I have to use acts_as_solr but I don't find any information > about searching in documents. > > Thank you ! > > Vincenz

[Rails] Re: Rails base model

2010-09-17 Thread Veera Sundaravel
Hi Daniel, Go through this link http://stackoverflow.com/questions/937429/activerecordbase-without-table-rails Where in, answers section you can find an example related to your approach. -- Regards, T.Veerasundaravel. http://tinyurl.com/25vma7h @veerasundaravel DanielMedia wrote: > I'm very

[Rails] Re: Chat Application

2010-09-17 Thread Veera Sundaravel
Hi Krish, You can find lot more jQuery plugin in online to do a simple chat application. For example: http://anantgarg.com/2009/05/13/gmail-facebook-style-jquery-chat/ Regards, T.Veeraa. http://tinyurl.com/25vma7h @veerasundaravel krishnamoorthy m wrote: > Hi Pals, > > I am in need of fini

[Rails] Re: Performing nested queries in rails

2010-09-17 Thread Veera Sundaravel
If possible try with :conditions parameter. T.Veeraa http://tinyurl.com/25vma7h -- 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...@googlegrou

[Rails] Re: Rails 3 install on Ruby Enterprise

2010-08-26 Thread Veera Sundaravel
May be this link will help you. http://veerasundaravel.wordpress.com/2010/02/15/rails3-beta-installation/ Charlie B99 wrote: > hi there - attempting to sudo gem install rails --pre on a system > running ruby enterprise-1.8.7-2010.02. > > however, I'm getting an error: active model requires i18n

[Rails] Re: determining link geo-location

2010-08-23 Thread Veera Sundaravel
Rajinder Yadav wrote: > I am trying to figure out how to get the user's geo-location when a > request comes in after they've clicked on a link. Is there a easy way to > do this in rails, also is the geo-location provided by the user's > browser, or is there another way this is determined? > > Than

[Rails] Re: Non Model form with Validation

2010-06-22 Thread Veera Sundaravel
Hi, better you try these gems for non-model validation active_record_no_table - http://www.railsfire.com/article/validating-non-active-record-model-using-active-record-no-table validatable - http://validatable.rubyforge.org/ Regards, T.Veeraa. Rails Learner wrote: > Hi Everybody, > > I need

[Rails] Re: Problem with callbacks and has_many :through association

2010-06-22 Thread Veera Sundaravel
Hi Szymon, you can use after_create and after_destroy callback method in venue_suggestions model. So when ever you are assigning a new venue to a reply it will create a record in venue_suggestions table and call the after_create method. But the issue with after_destroy is: if you are trying t

[Rails] Re: Rating Plugin

2010-06-22 Thread Veera Sundaravel
Hi, As Philipe mentioned you have to modify the plugin little bit to match your requirement. Lets say you are using acts_as_ratable plugin, so they will use rate column to specify the rate. You just add few more columns like benefit_rate, applicability_rate, quality_rate and what ever you wan

[Rails] Re: how to specify relationship between these models

2010-03-19 Thread Veera Sundaravel
Let say you are having staff, directors and managers as part of your system, and their details will be in users table so let say we can build inheritance based relationship like below: Class User < ActiveRecord::Base end Class Staff < User end Class Director < User end Class Manager < User

[Rails] Apostrophe display issue in view file.

2009-07-02 Thread Veera Sundaravel
Hi folks, I have some user name with Apostrophe, where these names are displayed in view files with some unwanted characters instead of Apostrophe. For example, Bottom's Profile page is the original string and it is displaying in browser like this. Bottomn’s Profile page. Can any one sugge

[Rails] Re: Ultrasphinx: adding field_name in search query

2008-12-19 Thread Veera Sundaravel
Veera Sundaravel wrote: > Hi all, > > I want to search for a keyword in a particular field, for example say I > want to search for the keyword "rails" in the field title so how can I > include the field_name in query string. > > s=Ultrasphinx::Search.new(:query =&

[Rails] Ultrasphinx: adding field_name in search query

2008-12-19 Thread Veera Sundaravel
Hi all, I want to search for a keyword in a particular field, for example say I want to search for the keyword "rails" in the field title so how can I include the field_name in query string. s=Ultrasphinx::Search.new(:query => "@title rails") or s=Ultrasphinx::Search.new(:query => "title: rail