Re: [Rails] Custom schema_migrations table name

2014-04-21 Thread sandip ransing
Hi Tommaso, You can set table_name inside rails model. Example: class A < ActiveRecord::Base > set_table_name "aa" > end - Sandip On Mon, Apr 21, 2014 at 2:23 PM, Tommaso Visconti < tommaso.visco...@gmail.com> wrote: > Hi all, > I have more rails apps sharing the same database and this crea

Re: [Rails] date validation in rails 3

2012-02-01 Thread sandip ransing
@peter make sense! let me try with overridden birth_date= writer method in rails 3 On Wed, Feb 1, 2012 at 3:28 PM, Peter Vandenabeele wrote: > On Wed, Feb 1, 2012 at 10:35 AM, Colin Law wrote: > >> On 1 February 2012 09:24, sandip ransing wrote: >> > Hi Peter, >> >

Re: [Rails] date validation in rails 3

2012-02-01 Thread sandip ransing
Wed, Feb 1, 2012 at 2:43 PM, Peter Vandenabeele wrote: > On Wed, Feb 1, 2012 at 9:22 AM, sandip ransing wrote: > >> consider scenario, >> >> User model with name, birth_date fields (here birth_date is not >> mandatory field) >> >> inside view form bir

Re: [Rails] Re: date validation in rails 3

2012-02-01 Thread sandip ransing
thanks for reply but its unusable bcz value gets blank before validation. example. u = User.new u.birth_date = '31/31/2011' u.birth_date #=> nil u.valid? #=> true u.birth_date = '1/1/2011' u.birth_date #=> Sat, 01 Jan 2011 On Wed, Feb 1, 2012 at 2:21 PM, Neethu Satheesh wrote: > Hi Sandip, > >

[Rails] date validation in rails 3

2012-02-01 Thread sandip ransing
consider scenario, User model with name, birth_date fields (here birth_date is not mandatory field) inside view form birth_date is assigned as '31/31/1985' which is invalid ideally user object should be invalid and while save raise an error on birth_date field but that's not happening and user o

Re: [Rails] Re: Database level authentication

2012-01-30 Thread sandip ransing
There are many free DB UI tools available. Choose suitable one for your db choice. On Tue, Jan 31, 2012 at 12:36 AM, Marcin S wrote: > No, I think... > > Its like every db on server have its own set of permissions for > different users ,right? > And i want to authenticate user based on that perm

Re: [Rails] calling same modelling will fire multiple queries to db in rails 2.3.5?

2012-01-01 Thread sandip ransing
nope :) On Mon, Jan 2, 2012 at 1:10 PM, Tushar Gandhi wrote: > Hi, > I have a user and address model. > > In one of my view I am using "@user.address" 5 times. > > My question is weather will it fire 5 different queries to the database? > > Thanks, > Tushar > > -- > Posted via http://www.ruby-fo

Re: [Rails] Do's and Don'ts in ROR

2011-12-28 Thread sandip ransing
http://rails-bestpractices.com/ On Wed, Dec 28, 2011 at 2:29 PM, sandip ransing wrote: > Follows rails best practices, coding standards and conventions. > Below link will give you standards defined by me in 2009.. hopefully i > will write modified version soon.. > http://www.funonra

Re: [Rails] Do's and Don'ts in ROR

2011-12-28 Thread sandip ransing
Follows rails best practices, coding standards and conventions. Below link will give you standards defined by me in 2009.. hopefully i will write modified version soon.. http://www.funonrails.com/2009/05/rails-coding-standards.html On Wed, Dec 28, 2011 at 2:14 PM, honey ruby wrote: > hey everyone

Re: [Rails] Finding Username of the machine from which rails app accessed

2011-12-26 Thread sandip ransing
observe request parameters but i dont think its giving machine name On Mon, Dec 26, 2011 at 3:29 PM, venkata reddy wrote: > Hi All, >Can anybody tell me, is there any way that i can find the name > of the computer/machine rather than ip of the machine, from where a > user is accessing my

Re: [Rails] Re: Active Admin problem

2011-12-20 Thread sandip ransing
rails generate active_admin:install rake db:migrate On Tue, Dec 20, 2011 at 4:06 PM, sandip ransing wrote: > You have to generate active admin migrations first and then need to > migrate those tables in db. > > > On Tue, Dec 20, 2011 at 4:00 PM, guru wrote: > >> >&g

Re: [Rails] Re: Active Admin problem

2011-12-20 Thread sandip ransing
You have to generate active admin migrations first and then need to migrate those tables in db. On Tue, Dec 20, 2011 at 4:00 PM, guru wrote: > > yes i have > I think it is because there is no comment field in my database and > active admin show page is going for the comment and not found comment

Re: [Rails] Active Admin problem

2011-12-20 Thread sandip ransing
have u ran command rake db:migrate On Tue, Dec 20, 2011 at 3:43 PM, guru wrote: > I am new to active admin. I am using rails 3 and I create one resource > called product with the field of Name, Price, category.It runs good with > simple users but when i log in to admin and try to create new prod

Re: [Rails] Re: Library management system in ROR

2011-09-11 Thread sandip ransing
checkout bxr library mgmt system http://github.com/sandipransing/library_management_system On Sun, Sep 11, 2011 at 12:00 PM, Amrit Pal Pathak < amritpalpath...@gmail.com> wrote: > > > On Sun, Sep 11, 2011 at 1:43 AM, Robert Walker wrote: > >> amritpal p. wrote in post #1021198: >> > hey everyone

Re: [Rails] Good rails 3.1 book

2011-09-07 Thread sandip ransing
It should not make any difference.. You can always find latest release notes with every rails version.. On Wed, Sep 7, 2011 at 7:58 PM, coolesting wrote: > The book ends at the version 3 of rails , currently. > > > 2011/9/7 sandip ransing > >> I found these books much us

Re: [Rails] Good rails 3.1 book

2011-09-07 Thread sandip ransing
I found these books much useful 1. rails 3 in action 2. The rails 3 way On Wed, Sep 7, 2011 at 7:29 PM, Rodrigo Ruiz wrote: > Hi, I read the Ruby on Rails Tutorial - Learn by Example book and I'm > looking for a good rails 3.1 book to learn rails 3.1 and TDD (also to get a > more advanced book

Re: [Rails] Unable to use mysql with rails

2011-09-07 Thread sandip ransing
Problem is that mysql2 gem is not installed.. Install mysql2 gem with source as path to mysql in order top install it properly On Wed, Sep 7, 2011 at 7:24 PM, venkata reddy wrote: > Hi All, > I successfully installed rails(3.0.10) and ruby version > 1.9.2 and mysql version 5.5.8 on my wi

Re: [Rails] Re: search engine

2011-08-22 Thread sandip ransing
use thinking-sphinx gem 2011/8/22 J. Pablo Fernández > You could just use SQL if your needs are very simple. It's a > straightforward solution, just do a query using LIKE and wildcards, but be > careful not to open your app to SQL injection. > > If that's not enough, several databases have full

Re: [Rails] Re: Select Multipal friend from facebook

2011-06-22 Thread sandip ransing
use contacts gem On Wed, Jun 22, 2011 at 3:43 PM, Pravin Mishra < diatm.pravin.it.07...@gmail.com> wrote: > Hi everyone, > I had not get any solution. I want to develop my site like that > http://developers.facebook.com/blog/post/464/ > No one had developed application like that. If any one have

Re: [Rails] Rails 2.3.10 reporting gem recommendation?

2011-06-20 Thread sandip ransing
acts_as_reportable gem On Mon, Jun 20, 2011 at 3:48 PM, Owain wrote: > Does anyone have any suggestions/recommendations of a reporting gem/ > plugin/tool framework. I would like to produce some canned reports > from some ActiveRecord data. e.g. orders by week. Generate a report > or a chart an

Re: [Rails] polymorphic associations

2011-04-12 Thread sandip ransing
`type` attribute is of which model ?? I guess it is of property model and `values` method wrote inside property model, right ? ProductPropertyString, ProductPropertyBoolean, ProductPropertyInteger are these models ?? if yes, why do you need association ? "has_many: values,: class_name => 'ProductP

Re: [Rails] abstract superclass for model

2010-08-25 Thread Sandip Ransing
try something like this. U need not call set_table_name from child class as long as model name matches with database table using prefix string. class Abstract < ActiveRecord::Base set_table_name "some_prefix_#{self.to_s.tableize}" end If you want to override then class Photo < Abstract set_t

Re: [Rails] rails named scopes joined with OR

2010-08-18 Thread Sandip Ransing
n Wed, Aug 18, 2010 at 1:27 PM, Colin Law wrote: > On 18 August 2010 08:44, Franz Strebel wrote: > > On Tue, Aug 17, 2010 at 9:39 PM, Sandip Ransing > wrote: > > > >> Is it possible to have two named scopes that can be joined using OR > condition. > > >

Re: [Rails] Re: Re: rails named scopes joined with OR

2010-08-18 Thread Sandip Ransing
hmm. I gone through it .. but its necessary for me. Is there any workaround ? On Wed, Aug 18, 2010 at 3:32 AM, Marnen Laibow-Koser wrote: > Sandip Ransing wrote: > > Marnen thx for reply ! > > > > Actually I wanted to add "OR" condition to acts_as_mappable finde

Re: [Rails] Re: rails named scopes joined with OR

2010-08-17 Thread Sandip Ransing
:( On 8/18/10, Marnen Laibow-Koser wrote: > Sandip Ransing wrote: >> Is it possible to have OR conditions using named scope ?? >> For e.g. Gather users based on following or conditions. >> 1. active is one named scope which finds all users whose state is active >>

[Rails] rails named scopes joined with OR

2010-08-17 Thread Sandip Ransing
Is it possible to have OR conditions using named scope ?? For e.g. Gather users based on following or conditions. 1. active is one named scope which finds all users whose state is active 2. OR user id is in 1,2,3 This condition can be written in only one named scope as named_scope :active_or_expl

Re: [Rails] Re: Any help on SMS and payment gateway in India

2010-03-20 Thread Sandip Ransing
What exactly you mean ?? Are u looking for sms gateway or payment gateway ? On Fri, Mar 19, 2010 at 11:53 AM, dare ruby wrote: > bramu...@gmail.com wrote: > > are you able to find out the free sms gateway in india?? > > > > On Dec 28 2007, 6:24�pm, Atul Gupta > > Dear atul and Ramu, > > could a

Re: [Rails] Re: Re: Re: Email using ruby on rails

2010-03-18 Thread Sandip Ransing
Just remove domain from smtp settings and it should work fine Instead we are passing it through username. ActionMailer::Base.delivery_method = :smtp ActionMailer::Base.smtp_settings = { :address => "smtp.gmail.com", :port => 587, :authentication => :plain, :enable_starttls_auto => true,

Re: [Rails] Re: Re: Email using ruby on rails

2010-03-17 Thread Sandip Ransing
Hi Manish, Is email sending log is getting created inside log file ? Is tutorialspoint.com is your domain ? If yes, then where smtp setup has been done ? Why don't you send emails using gmail account ? Thanks, On Wed, Mar 17, 2010 at 8:56 PM, Manish Belsare wrote

[Rails] New plugin added to add help text i.e. tooltip in rails http://ow.ly/1l7nF #plugin #rails #tooltip

2010-03-15 Thread Sandip Ransing
Hello All, I just added a new rails_tooltip plugin on github that will help to add help tooltip to html nodes ( table columns, text_fields, labels, etc. ) http://github.com/sandipransing/rails_tooltip -- Sandip --- www.funonrails.com -- You received this message because you are subscribed to

Re: [Rails] Re: Rails Code Indentation

2010-03-13 Thread Sandip Ransing
Hi Joel, Thanks for the plugin ! I would like to use it but i am working on ubuntu machine and textmate works with mac. meanwhile i found rails.vim script for vim that solved my auto indentation problems. http://www.funonrails.com/2010/02/vim-editor-for-ruby-on-rails.html On Mon, Nov 2, 2009 at

Re: [Rails] Ruby on Rails blog

2010-03-12 Thread Sandip Ransing
Pankaj, Congrats for new blogging! We would like to see some nice rails programming stuff. Thanks, On Sat, Mar 13, 2010 at 12:36 AM, pankaj wrote: > Hi Everyone, > I am very happy to announce that I have started a blog at > http://www.railsguru.org > I have learnt a lot from the ruby and rails

Re: [Rails] plugin path

2010-03-12 Thread Sandip Ransing
I guess you missed out installing plugin. Go to vendor/plugins directory. find install.rb if it is then run "ruby install.rb" command. On Fri, Mar 12, 2010 at 11:26 PM, tommy wrote: > I am a newbie of rails. Recently I stuck in using plugins. I guess I > have problem to set the path to call the

Re: [Rails] How to make an array available to all views.

2010-03-12 Thread Sandip Ransing
Huh :) Very nice debate and good conclusion. I think i should document it! On Fri, Mar 12, 2010 at 11:35 PM, Josh Cheek wrote: > On Fri, Mar 12, 2010 at 2:59 AM, Andy Jeffries wrote: > >> > It's dirty, horrible, bad form, breaks the separation of layers... > > I don't know what you mean

Re: [Rails] Re: Email using ruby on rails

2010-03-12 Thread Sandip Ransing
username/password are the credentials to your email account. # Example smtp gmail settings. ActionMailer::Base.delivery_method = :smtp ActionMailer::Base.smtp_settings = { :address => "smtp.gmail.com", :port => 587, :authentication => :plain, :enable_starttls_auto => true, :user_name

Re: [Rails] Create links with gsub

2010-03-12 Thread Sandip Ransing
Hi Sorry but It would be good for future if you look at ruby regular expressions instead of asking for any solutions. Here is regular expression for gsub product.description =~ /href="(\d+)/ product.description.gsub($1, product.url) My suggestion is that use *$PRODUCT_URL_* instead of link in de

Re: [Rails] Re: "We're sorry, but something went wrong." from RoR app

2010-03-12 Thread Sandip Ransing
Try reinstalling mysql gem! On Sat, Mar 13, 2010 at 1:07 AM, Aldric Giacomoni wrote: > RichardOnRails wrote: > > Hi All, > > > > "We're sorry, but something went wrong." is the message I got when I > > started up an RoR app in the environment: > > > > Rails 2.3.5 > > Ruby 1.8.6 > > WinXP-Pro/SP3

Re: [Rails] Re: local variable

2010-03-11 Thread Sandip Ransing
request parameters are always strings. You can convert string parameter to integer in controller using *to_i*method. On Wed, Mar 10, 2010 at 1:16 AM, Robert Walker wrote: > kevid wrote: > > pls can you post the link? > > > http://api.rubyonrails.org/classes/ActionView/Helpers/UrlHelper.html#M00

Re: [Rails] scite on Ruby 1.9

2010-03-11 Thread Sandip Ransing
Scite comes as separate application. You need to install it. On Thu, Mar 11, 2010 at 10:08 PM, Keletiki Kel wrote: > Hi everybody, > I am a novice in programming and I am actually having fun with Ruby. > With Ruby 1.8.6, scite works well. However, this helpful tool does not > come with Ruby 1.9.

Re: [Rails] Rich Text Editor

2010-02-22 Thread Sandip Ransing
TinyMCE editor is also a good option. Plugin supports image & media upload alongwith YML configuration for plugins http://github.com/sandipransing/rails_tiny_mce On 2/22/10, ben wiseley wrote: > There's also http://github.com/37signals/wysihat > > I've used tinymce on past projects. It's a pain

Re: [Rails] Re: SMS Messaging

2010-01-07 Thread Sandip Ransing
There are many paid sms gateways in market. They provides developer api to send sms. LIKE Webstar, timessms, clickatell. You compare pricing and use which is best suites with your business needs. On 1/5/10, Marnen Laibow-Koser wrote: > Merrick Christensen wrote: >> Forgive this mis targeted ema

Re: [Rails] action mailer

2010-01-07 Thread Sandip Ransing
Following settings that needs to be added in environment.rb ActionMailer::Base.delivery_method = :smtp ActionMailer::Base.default_content_type = "text/html" ActionMailer::Base.smtp_settings = { :address => "smtp.gmail.com", :port => 587, :authentication => :plain, :enable_starttls_auto =>

Re: [Rails] Re: Generate PDF

2010-01-07 Thread Sandip Ransing
Hi You can also do this using acts_as_reportable gem but prawn is always best for complicated pdfs. On 1/5/10, Adrien Coquio wrote: > Thanks for your answer ! > I will search some informations about prawn. > > adrien > > On Jan 4, 9:23 pm, bill walton wrote: >> Hi Adrien, >> >> On Mon, 2010-01-

Re: [Rails] Re: How to Reduce cpu and memory utilization

2010-01-07 Thread Sandip Ransing
use nginx+thin/nginx+passenger will definitely reduce memory utilization. On 1/7/10, RaW wrote: > For production you can try using ruby enterprise ( > http://www.rubyenterpriseedition.com/ > ). > This should reduce your resources (RAM) usage down about 30% > -- Sandip --- www.funonrails.com -

Re: [Rails] Re: Mysql::Error: Lock wait timeout exceeded; try restarting transaction

2009-12-28 Thread Sandip Ransing
@Frederick * * *After debug i found that Ferret index update is the cause, any views ? * -- Sandip --- www.funonrails.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...@googlegroups

[Rails] Mysql::Error: Lock wait timeout exceeded; try restarting transaction

2009-12-28 Thread Sandip Ransing
Hello all I am using acts_as_ferret in user model. Error Message: -- ActiveRecord::StatementInvalid: Mysql::Error: Lock wait timeout exceeded; try restarting transaction: UPDATE `users` SET `updated_at` = '2009-12-28 14:31:50', `active_till` = '2009-12-28 14:31:50' WHERE `id` = 21 Wh

Re: [Rails] Re: TinyMCE v. FCKeditor v. others

2009-12-21 Thread Sandip Ransing
http://github.com/sandipransing/rails_tiny_mce Support image and media uploads On Sun, Dec 20, 2009 at 4:10 PM, Fidel Viegas wrote: > On Sat, Dec 19, 2009 at 11:32 PM, Peter De Berdt > wrote: > > > > On 19 Dec 2009, at 16:15, Jakub wrote: > > > > I am quite happy with TinyMCE and there is a Rail

[Rails] radiant copy one site to another site

2009-12-02 Thread Sandip Ransing
Hi All I am using radiant cms with spanner's multi_site and scoped_admin extensions and everything going right. Is there existing extension for cloning site. i.e. I should able to copy one site to another site as it is with all its pages & layouts. -- Sandip --- www.funonrails.com

[Rails] Re: Ready to use tinymce

2009-11-10 Thread Sandip Ransing
Rails tiny plugin using jquery, paerclip with image upload and media upload support http://github.com/sandipransing/rails_tiny_mce On Tue, Sep 1, 2009 at 10:43 PM, Trausti Thor Johannsson < traust...@gmail.com> wrote: > > Hi, > > Does anyone have a ready to use tinymce with image upload capabilit

[Rails] Re: tiny_mce plugin

2009-11-10 Thread Sandip Ransing
git://github.com/sandipransing/rails_tiny_mce.git On Sun, Aug 23, 2009 at 9:29 PM, Trausti Thor Johannsson < traust...@gmail.com> wrote: > > Hi All, > > I found this out. I had in the plugins set 'image' but it should have > been 'advimage' and now everything works as it should. > > > Thanks > >

[Rails] Re: What's your favorite thing about Rails?

2009-11-02 Thread Sandip Ransing
Code less and enjoyable work :) its always fun while coding in ruby ! -- Sandip --- www.funonrails.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

[Rails] Re: Your Ruby IDE

2009-11-02 Thread Sandip Ransing
*Scite* is good for html and erb coding. *Vi* with rails.vim configuration is always best for any development -- Sandip --- www.funonrails.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk"

[Rails] Re: Insert Multiple records in table

2009-11-02 Thread Sandip Ransing
http://ryandaigle.com/articles/2009/2/1/what-s-new-in-edge-rails-nested-attributes On Mon, Nov 2, 2009 at 4:04 PM, Brijesh Shah < rails-mailing-l...@andreas-s.net> wrote: > > Hi > > Here I want to insert multiple records into a single table. > Table is users.: email, password, password_confirmati

[Rails] Re: Assist me in Screen Scraping

2009-11-02 Thread Sandip Ransing
ed to go deep and scrape some airline information via my rails > app. > > Can you please guide me more? > > Thank you, > Hassan > > 2009/11/2 Sandip Ransing > > Hi Hassano >> >> Start with "Scrapi" >> >> San

[Rails] Re: Ajax Pagination

2009-11-02 Thread Sandip Ransing
http://squaremasher.blogspot.com/2008/02/willpaginate-remotely.html Sandip -- www.funonrails.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 rub

[Rails] Re: Ruby browser

2009-11-02 Thread Sandip Ransing
refer to watir library in ruby http://wtr.rubyforge.org/ On Mon, Nov 2, 2009 at 1:17 AM, Leonardo Mateo wrote: > > On Sun, Nov 1, 2009 at 4:35 PM, Ernesto Rocha > wrote: > > hi guys, > > > > I'm trying to do a program that automates some site usage, like fetch the > > site, fill a field and "pr

[Rails] Re: please help - complicated polymorphic association

2009-11-02 Thread Sandip Ransing
Hi As subscriber model is polymorphic and as you are referring "subscribers.appointments" It means, you are having following association in appointment model. class Appointment < ActiveRecord::Base has_many :subscribers, :as => : subscribable end Here goes solution class User < ActiveRecord:

[Rails] Re: Assist me in Screen Scraping

2009-11-02 Thread Sandip Ransing
Hi Hassano Start with "Scrapi" Sandip -- www.funonrails.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-talk@googlegroups.com To uns

[Rails] Re: rails 2.3.3 upgrade shows error

2009-09-29 Thread Sandip Ransing
@colin I figured out problem. I just comment out erubies in environment.rb and everything working fine. I am wondering that where erubies got incompatibility in this version. --Sandip On Tue, Sep 29, 2009 at 6:07 PM, Colin Law wrote: > > 2009/9/29 Sandip Ransing : > > Hi Colin &g

[Rails] Re: rails 2.3.3 upgrade shows error

2009-09-29 Thread Sandip Ransing
Hi Colin On Tue, Sep 29, 2009 at 3:56 PM, Colin Law wrote: > > 2009/9/29 Sandip Ransing : > > @mukund > > > > sounds good...but little tedy task. > > > > @colin > > > > /views/sessions/new.html.erb > > <% form_tag( session_p

[Rails] Re: rails 2.3.3 upgrade shows error

2009-09-29 Thread Sandip Ransing
@mukund sounds good...but little tedy task. @colin /views/sessions/new.html.erb <% form_tag( session_path, :builder => DavesFormBuilder ) do %> Login <%= text_field_tag 'login' %> Password <%= password_field_tag 'password' %> <%= submit_tag 'login'%> <% end %> url

[Rails] Re: rails 2.3.3 upgrade shows error

2009-09-29 Thread Sandip Ransing
One more thing.. This error appears on page where form_tag / form_for got used... Otherewise, Else works fine ! --Sandip --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this

[Rails] Re: rails 2.3.3 upgrade shows error

2009-09-29 Thread Sandip Ransing
@colin yes . i did " rake rails:update " --Sandip --~--~-~--~~~---~--~~ 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 unsubscr

[Rails] rails 2.3.3 upgrade shows error

2009-09-29 Thread Sandip Ransing
You have a nil object when you didn't expect it! You might have expected an instance of Array. The error occurred while evaluating nil.<< any ideas ? Application works fine with rails 2.1.0 Sandip -- Ruby on Rails Developer http://funonrails.wordpress.com www.joshsoftware.com http://brandpotion

[Rails] Rails tiny plugin using jquery, paerclip with image upload and media upload support

2009-09-25 Thread Sandip Ransing
Rails tiny plugin using jquery, paerclip with image upload and media upload support http://github.com/sandipransing/rails_tiny_mce Sandip -- Ruby on Rails Developer http://funonrails.wordpress.com www.joshsoftware.com http://brandpotion.com (Latest project released) --~--~-~--~~---

[Rails] Re: Widgets

2009-09-25 Thread Sandip Ransing
Have a look at browsercms in rails Sandip On Wed, Sep 23, 2009 at 5:17 PM, Smit Shah wrote: > > Hi All, > > Any one is having any idea about how to create widgets in rails??? > > Thanks in advance... > -- > Posted via http://www.ruby-forum.com/. > > > > -- Ruby on Rails Developer http://fun

[Rails] memcache-client error though i have memcache-client gem installed

2009-09-25 Thread Sandip Ransing
Hi My application was using rails 2.1.0 that i changed to rails 2.3.3 then i did rake rails:update. while script/server start it gives me error memcache-client error. Sandip -- Ruby on Rails Developer http://funonrails.wordpress.com www.joshsoftware.com http://brandpotion.com (Latest project re

[Rails] Re: Paperclip attachment to AWS - ActiveRecord::AssociationTypeMismatch

2009-09-15 Thread Sandip Ransing
What is current trace...? --Sandip --~--~-~--~~~---~--~~ 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, s

[Rails] Re: regular expression help needed

2009-09-14 Thread Sandip Ransing
Thanks buddies ! I am sure that in next couple of hours, will able to write complex regex ! -- Sandip --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email t

[Rails] regular expression matching date, author and agency in string

2009-09-11 Thread Sandip Ransing
Hello All, I wanted regular expression for the following patterns like Nauzer Bharucha, TNN 10 September 2009, 12:01am IST IANS 3 September 2009, 02:57pm IST regular expression should return *date* in first group *author* in second group and *agency* in third group for below pattern it should

[Rails] Re: regular expression help needed

2009-09-11 Thread Sandip Ransing
Thanks ! What will be the regular expression to extract *IANS* and *3 September 2009, 02:57pm IST* from following string *" IANS 3 September 2009, 02:57pm IST "* Sandip -- Ruby on Rails Developer http://sandip.sosblog.com http://funonrails.wordpress.com www.joshsoftware.com --~--~-~-

[Rails] regular expression help needed

2009-09-11 Thread Sandip Ransing
Hello I am very week with regular expressions. It may be too easy for someone. I have following regular expression loc_content_re = /(?:([A-Za-z\s:]*?):)?([\s\S]*)/ > content = "HYDERABAD/NEW DELHI: Andhra Pradesh chief minister was " > I wanted to extract "HYDERABAD/NEW DELHI" from above

[Rails] Re: Tagging recommendation - acts_as_taggable_on_steroids best?

2009-09-10 Thread Sandip Ransing
Hi I agree with phillip suggstion. @max, Don't go with steroids as it has limitations for multiple taggings like ( tags, skills, interests ) that were extended in acts_as_taggable_on Sandip -- Ruby on Rails Developer http://funonrails.wordpress.com www.joshsoftware.com --~--~-~--~

[Rails] Re: Paperclip attachment to AWS - ActiveRecord::AssociationTypeMismatch

2009-09-10 Thread Sandip Ransing
Try this out On Thu, Sep 10, 2009 at 1:49 PM, codex1 wrote: > > Hi, > > I have been trying to do this for a few days now and cannot figure it > out. I would be very grateful is anyone can help me > > I am trying to upload an attachment to AWS, S3 using paperclip, > however every time I keep gett

[Rails] Re: pagination problem...

2009-09-08 Thread Sandip Ransing
will_paginate plugin is best solution It can retrieve records for particular page, not whole record set. @customers = Customer.paginate( :page => :params[:page], :limit => 10 ) Sandip R~ On Wed, Sep 9, 2009 at 11:56 AM, Terry wrote: > > hey dude. > I think by your requirement, you'd better us

[Rails] How to start backgroundrb server on server reboot ??

2009-09-08 Thread Sandip Ransing
Hello How do i start backgroundrb server on server reboot ?? Thanks, Sandip -- Ruby on Rails Developer http://sandip.sosblog.com http://funonrails.wordpress.com www.joshsoftware.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[Rails] Re: mysql problem

2009-09-07 Thread Sandip Ransing
Hi Is there a way i can provide mysql password while creating rails application ? Specify rails version while creating new rails project http://funonrails.wordpress.com/2009/04/20/specify-rails-version-to-use-while-creating-rails-project/ Sandip R~ -- Ruby on Rails Developer http://sandip.sosb

[Rails] [ browsercms ] drag and droppable portlets

2009-09-07 Thread Sandip Ransing
Hello, browsercms supports portlets which can be added to pages dynamically. Is there any way we can organise these portlets. ( drag and drop just like igoogle. ) Thanks for any ideas ? Sandip R~ -- Ruby on Rails Developer http://sandip.sosblog.com http://funonrails.wordpress.com www.joshsof

[Rails] Re: paperclip image styles getting cropped

2009-07-29 Thread Sandip Ransing
Thanks, Andrew ! I will make that change Sandip R~ --~--~-~--~~~---~--~~ 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 fr

[Rails] Re: paperclip image styles getting cropped

2009-07-29 Thread Sandip Ransing
solved "#" used in style needs to be removed. #Files attached to channels has_attached_file :logo, :styles => { :small_thumb => [ "64x44", :jpg ], :large_thumb => [ "81x81", :jpg ]}, :storage => :s3, :path => ":attachment/:id/:style.:extension", --~--~-~--~~-

[Rails] Re: paperclip image styles getting cropped

2009-07-28 Thread Sandip Ransing
uploading a square image is not a problem. but when i upload a rectangular image. image gets distorted. On Wed, Jul 29, 2009 at 11:24 AM, Sandip Ransing wrote: > Hi > > > here is my attached file code > > #Files attached to channels >has_attached_file :

[Rails] Re: paperclip image styles getting cropped

2009-07-28 Thread Sandip Ransing
Hi here is my attached file code #Files attached to channels has_attached_file :logo, :styles => { :small_thumb => [ "64x44#", :jpg ], :large_thumb => [ "81x81#", :jpg ]}, :storage => :s3, :path => ":attachment/:id/:style.:extension", :s3_credentials => open( "#{RAIL

[Rails] [PAPERCLIP] How to avoid image crop in paperclip styles

2009-07-28 Thread Sandip Ransing
Hello All, I am using rails paperclip plugin for image upload. my image has different styles and the original image gets cropped while processing styled image. I dont want image to be cropped. Is there any way Thanks, Sandip R~ --~--~-~--~~~---~--~~ Yo

[Rails] paperclip image styles getting cropped

2009-07-28 Thread Sandip Ransing
Hello All, I am using rails paperclip plugin for image upload. my image has different styles and the original image gets cropped while processing styled image. I dont want image to be cropped. Is there any way Thanks, Sandip R~ -- Ruby on Rails Developer http://sandip.sosblog.com ht

[Rails] Re: Model.destroy(array of ids) Bug

2009-07-20 Thread Sandip Ransing
Sorry, my mistake ! Actually IE brawser was submitting request twice to delete action. hence..in second request it was showing record not found exception. --Sandip R~ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "

[Rails] Model.destroy(array of ids) Bug

2009-07-20 Thread Sandip Ransing
Hello friends ! Model.destroy(array of ids) gives record not found error in Internet Explorer. Sandip R~ -- Ruby on Rails Developer http://sandip.sosblog.com http://funonrails.wordpress.com www.joshsoftware.com --~--~-~--~~~---~--~~ You received this message bec

[Rails] Re: .html/.html.erb/.rhtml to PDF

2009-07-19 Thread Sandip Ransing
Thanks Marnen ! i will ask question to prawn team Sandip R~ --~--~-~--~~~---~--~~ 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 unsu

[Rails] Re: .html/.html.erb/.rhtml to PDF

2009-07-16 Thread Sandip Ransing
Hi guys ! I used prawn to generate pdf document. its clean and simple to code. but i am facing one problem. In one of my table row i wanted to "Total IDV" text aligned centered. but its not working. [ {:text => "Total IDV", :colspan => 3, *:align => :center* },"#{ total_idv }" ] NOTE: *:text_

[Rails] Re: Redbox

2009-07-15 Thread Sandip Ransing
Hi janna, I am using thickbox for changing user's password. but what happens, after posting form, when error occurs ( i.e. password n confirmation mismatch ) response does't come back to thickbox. it goes to normal html page. do you have any idea on this ?? Thanks, Sandip R~ --~--~-~--~

[Rails] Re: .html/.html.erb/.rhtml to PDF

2009-07-14 Thread Sandip Ransing
Hi Jeff svn checkout http://wkhtmltopdf.googlecode.com/svn/trunk/ wkhtmltopdf cd wkhtmltopdf cmake -D CMAKE_INSTALL_PREFIX=/usr . make I am getting following error, do you have any idea ? wkhtmltopdf.dir/wkhtmltopdf.cc.o -c /home/sandip/wkhtmltopdf/wkhtmltopdf.cc /home/sandip/wkhtmltopdf/wkhtmlt

[Rails] Re: .html/.html.erb/.rhtml to PDF

2009-07-13 Thread Sandip Ransing
Thanks ! Sandip R~ --~--~-~--~~~---~--~~ 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 ru

[Rails] .html/.html.erb/.rhtml to PDF

2009-07-13 Thread Sandip Ransing
Hello All, I wanted to convert .html file into .pdf. is there any rails plugin ?? Thanks, Sandip R~ -- Ruby on Rails Developer http://sandip.sosblog.com http://funonrails.wordpress.com www.joshsoftware.com --~--~-~--~~~---~--~~ You received this message becau

[Rails] Re: Pagination url problem

2009-07-09 Thread Sandip Ransing
put this line in double quote. ['http://www.jobeehive.com/company-reviews/catalog/B?page=#{j.to_i} '] => ["http://www.jobeehive.com/company-reviews/catalog/B?page=#{j.to_i}

[Rails] Thinking sphinx search error

2009-06-25 Thread Sandip Ransing
Hello All, I wanted to implement sphinx search. I have following models. Blog # post model has column "channel_feature_id" has_many :posts, :foreign_key => "channel_feature_id" -- Post # Indexes for thinking sphinx define_index do indexes title indexes abstract indexes body #indexes comments.bo

[Rails] Re: How to disable form elements under any div ????

2009-06-25 Thread Sandip Ransing
tag ) Sandip R~ On Thu, Jun 25, 2009 at 1:12 AM, Colin Law wrote: > > 2009/6/24 Sandip Ransing : > > Hello All, > > how do i disable child form elements of any div [ html obj ], so that > they > > will not get posted. > > Is there any other way, to

[Rails] How to disable form elements under any div ????

2009-06-24 Thread Sandip Ransing
Hello All, how do i disable child form elements of any div [ html obj ], so that they will not get posted. Is there any other way, to toggle form elements while form post ?? > ~~~ form elements > form elements ~~~ Sandip R~ -- Ruby on Rails Developer http://sandip.sosblog.com

[Rails] Re: Your expert views on rails code security needed !

2009-06-23 Thread Sandip Ransing
Marven, Thanks for your reply ! I think, you missunderstood what i am saying. Let me explain little deep. Suppose, I have rails application as a product, I wanted to deploy it for many clients. They have their own servers. What make me sure that code is not exposed. What are your views ??? Th

[Rails] Re: One Quick help needed !

2009-06-23 Thread Sandip Ransing
Thanks, fred ! --~--~-~--~~~---~--~~ 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 rubyonr

[Rails] Re: One Quick help needed !

2009-06-19 Thread Sandip Ransing
eers, > Nicholas > > On Jun 19, 9:26 am, Sandip Ransing wrote: > > Hello Friends ! > > from my script/console > > I am getting channel blog feature as below>>Channel.find(:first).blog > > > > => # feature_id: > > 1, created_at: "200

[Rails] One Quick help needed !

2009-06-19 Thread Sandip Ransing
Hello Friends ! from my script/console I am getting channel blog feature as below >>Channel.find(:first).blog => # but i wanted to do something like >>Channel.find(:first)["blog"] => nil and it should return blog object, but it is not the case... anyone have any idea on this Thanks , Sand

  1   2   >