[Rails] order of execution of append before action filters same as their order of appearance in the source?

2016-10-24 Thread Nilesh More
red. Thank you in advance, Nilesh -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this

Re: [Rails] Need help with Rails paperclip gem

2016-03-15 Thread Nilesh
$ identify Version: ImageMagick 6.9.1-10 Q16 x86_64 2016-02-29 http://www.imagemagick.org On Tuesday, March 15, 2016 at 3:22:40 PM UTC+5:30, Nilesh wrote: > > $ bundle exec rails -v > > Rails 3.1.3 > > > $ ruby -v > > ruby 1.9.3p448 (2013-06-27 revision 41675) [x86

Re: [Rails] Need help with Rails paperclip gem

2016-03-15 Thread Nilesh
at 09:22, Nilesh > > wrote: > > Hi Colin, > > > > Yes, there is still a problem with ruby gem versions I am using. Using > above > > resize :styles code, produced SVG images are invalid xml, and do not > open in > > browser. So I want to u

Re: [Rails] Need help with Rails paperclip gem

2016-03-15 Thread Nilesh
On 15 March 2016 at 08:28, Nilesh > > wrote: > > Currently I am working on a ROR code which uses rails paperclip gem. > > > > > > My requirement is, to process images as per its file extension. > > > > > > Case 1: If image type is “svg”, then do no

[Rails] Need help with Rails paperclip gem

2016-03-15 Thread Nilesh
Currently I am working on a ROR code which uses rails paperclip gem. My requirement is, to process images as per its file extension. Case 1: If image type is “svg”, then do not process original image(as ImageMagick breaks on resizing svg images). Upload original image, along with large, med

Re: [Rails] enforce https for every page

2013-04-17 Thread Nilesh Panchal
on the web visit > https://groups.google.com/d/msg/rubyonrails-talk/-/gIjlx6E8d3wJ. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- Thanks & Regards, Nilesh B. Panchal Mobile No. : +91-9664212069 E-mail : neil08.panc...@gmail.com -- You received th

[Rails] Time based configuration in God

2011-05-18 Thread Nilesh
Hi, I am using resque, resque-scheduler gems in my rails app. To monitor the working of resque workers, I am using God tool. I want to add such a god configuration, which will monitor the time of job running in the resque worker. If process execution exceeds the time limit, then it should re

[Rails] Set user permission to Logger object

2011-05-04 Thread Nilesh
Can we set user read write access permissions while creating Logger object in rails application? How? -- 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: Problem with resque; parent process doesn't die

2011-04-17 Thread Nilesh
What if I explicitly exit process(using Process.exit(0)) in FooJob#perform after line Bar.add_jobs? -- 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 f

[Rails] Problem with resque; parent process doesn't die

2011-04-17 Thread Nilesh
I am facing problem in resque process. I have following implementation: /config/resque_schedule.yml add_jobs_to_queue: cron: "15 * * * *" class: FooJob description: "Find results from class Bar and put on queue" /app/jobs/foo_job.rb class FooJob @queue = :normal def self.perform

[Rails] Problem in resque: job not getting removed from queue when finished processing

2011-04-05 Thread Nilesh
Hi, I am using resque, and resque-scheduler in my rails application. I am facing strange problem in using resque-scheduler. One of my job is not getting removed from queue, once it finishes with the 'perform' method. I need to kill it explicitly to get out of the queue, then other jobs in the

[Rails] Re: passing multiple arguments in resque scheduler

2011-01-24 Thread Nilesh
On Jan 24, 5:01 pm, Nilesh wrote: > Hi, > > I have implemented resque scheduler in my application by looking at > example herehttps://github.com/bvandenbos/resque-scheduler. I have > configured resque_schedule.yml file, and in that I can pass arguments > to the resque job. M

[Rails] passing multiple arguments in resque scheduler

2011-01-24 Thread Nilesh
Hi, I have implemented resque scheduler in my application by looking at example here https://github.com/bvandenbos/resque-scheduler. I have configured resque_schedule.yml file, and in that I can pass arguments to the resque job. My requirement is to pass more than one arguments to the queueing res

[Rails] problem in displaying all older tweets

2009-11-10 Thread Nilesh
Hi Everyone, I want to display all the older tweets in my application. I am using jquery plugin(jquery.tweet.js) for that. I am getting only 9 days old tweets. Is it possible to get all the older tweets. If yes, please help me out. Thanks. --~--~-~--~~~---~--~~

[Rails] Re: Function Testing Reloading Fixtures before assertion *Solved*

2009-09-03 Thread Nilesh Kulkarni
brianp wrote: > Nilesh, > > using: > assert_equal :published, words(:one).status > delete :destroy, :id => words(:one).to_param > word_status = Word.find(:id).status > assert_equal :deleted, word_status > still returns // ActiveRecord::RecordNotFou

[Rails] Re: Function Testing Reloading Fixtures before assertion *Solved*

2009-09-03 Thread Nilesh Kulkarni
> def test_should_delete_word > assert_equal :published, words(:one).status > delete :destroy, :id => words(:one).to_param > reload! > word_status = Word.find(:id).status > assert_equal :deleted, word_status > end > Again returns: MethodError: undefined method `reload!' for

[Rails] How to run rake thinking_sphinx:index in test environment ?

2009-08-28 Thread Nilesh Kulkarni
Hi, I tried 'rake thinking_sphinx:index RAILS_ENV=test' but it throws following error F:\test_sarasaves\sarasaves>rake thinking_sphinx:index RAILS_ENV=test (in F:/test_sarasaves/sarasaves) Generating Configuration to F:/test_sarasaves/sarasaves/config/ test.sphinx.conf Sphinx 0.9.8-release (r15

[Rails] Re: Deleting Data After Viewing On Page

2009-08-25 Thread Nilesh Kulkarni
Tom Dunn wrote: > I'm creating a site that allows users to upload a picture. The picture > they uploaded will be shown randomly for a period of time then another > one will come on. When they upload it, they pay a certain price, > depending on how many times they want it to be viewed. I want it t

[Rails] testing thinking_sphinx

2009-08-25 Thread Nilesh Kulkarni
hello All, I am using thinking_sphinx for search method , i am writing testing for it, but when i try to run it in test environment it gives me following error D:\sarasaves>rake thinking_sphinx:index RAILS_ENV=test (in D:/sarasaves) Generating Configuration to D:/sarasaves/config/test.sphin

[Rails] google map

2009-07-24 Thread Nilesh Kulkarni
hi all I am using google map in my application, I am adding "labeled Markers" i.e A,B,CZ, in my map, it is working but I want to display marker and it's information on page same as Google map i.e if we search "coffee shop austin". map displays list of coffee shop on left and correspondin

[Rails] Re: how to pass ruby objects to javascript ?

2009-07-24 Thread Nilesh Kulkarni
Nilesh Kulkarni wrote: > thanks for reply > function google_map(){ > for(var j=0; j < locs.length; j++) > { > marker=addMarker(locs[i]['lat'], locs[i]['lng']) > }} ooo not var locs = (#...@locations.to_json}); but locs = (#{locations.to_j

[Rails] Re: how to pass ruby objects to javascript ?

2009-07-24 Thread Nilesh Kulkarni
Wayne Simacek wrote: > Are you using the GeoKit Rails plugin? > > On Jul 23, 3:52�am, Max Williams no... -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails:

[Rails] Re: how to pass ruby objects to javascript ?

2009-07-24 Thread Nilesh Kulkarni
thanks for reply I have done it something like = render :partial => 'coupons/search', :locals => {:locations => business_locations.} in "_search.html.haml" :javascript var locs = (#...@locations.to_json}); function google_map(){ for(var j=0; j < locs.length; j++) { marker=addMarker(locs

[Rails] how to pass ruby objects to javascript ?

2009-07-22 Thread Nilesh Kulkarni
hi all, I have following problem, I am using google map api , I have "business_locations" array defined in view it contains latitude and longitude in following format lng-142.122745lat42.674224 lng-112.122745lat46.674224 lng-122.122745lat40.674224 I am sending locations array to partia

[Rails] rails and haml

2009-04-22 Thread Nilesh Kulkarni
hi all what ia used for? -- 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-talk@googlegroups.

[Rails] haml tag

2009-04-20 Thread Nilesh Kulkarni
hi all any one know what is and when it is used? -- 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 rubyon

[Rails] Re: About haml and ruby on rail

2009-04-18 Thread Nilesh Kulkarni
Marnen Laibow-Koser wrote: > On Apr 14, 7:55�am, Nilesh Kulkarni > wrote: > > You have an elsif without a condition. Did you mean else? And why an > h4 when there's no h3 to nest it in? > > Let me know if you have any further questions. But if you're goin

[Rails] Re: About haml and ruby on rail

2009-04-14 Thread Nilesh Kulkarni
Marnen Laibow-Koser wrote: > Nilesh Kulkarni wrote: > > So you probably have a missing parenthesis or something like that. But > we can't tell for sure without seeing the Haml file. > > Best, > -- > Marnen Laibow-Koser > http://www.marnen.org > mar...@ma

[Rails] About haml and ruby on rail

2009-04-14 Thread Nilesh Kulkarni
hi all, I am converting my view into HAML format i have done it with "Html2Haml" command, then I removed all the "- end" from haml code and my indentation is also correct,but now it shows following errors I have kept code of show.html.erb and show.html.haml in attachment. please help me I

[Rails] Re: about HAsh in ruby

2009-03-15 Thread Nilesh Kulkarni
senthil raja wrote: > HI Nilesh > > Your Question is not clear, > > Can you explain with some example > > On Sat, Mar 14, 2009 at 6:13 PM, Nilesh Kulkarni < ok I am fetching value from database and displaying it in text_area ,consider book table.I have three fields

[Rails] about HAsh in ruby

2009-03-14 Thread Nilesh Kulkarni
HI ALL, I want to add values present in hash text_fields on form after form is displayed. is it possible, how can i do it. -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "

[Rails] Re: update_attributes and validation

2009-03-13 Thread Nilesh Kulkarni
Sumanth Krishna wrote: > try with update_attributes! (which internally uses 'save!') > > On Fri, Mar 13, 2009 at 2:00 PM, Nilesh Kulkarni < > rails-mailing-l...@andreas-s.net> wrote: > >> and 2028" >> 50 don2000 $400 >&

[Rails] update_attributes and validation

2009-03-13 Thread Nilesh Kulkarni
hi all, I am updating 50 records on one page with update_attributes method ,my validations are validates_numericality_of :year, :greater_than_or_equal_to => 1900, :less_than_or_equal_to => 2028, :message => "Year must be between 1900 and 2028" valdate_presence_of:title valdate_presence_of

[Rails] will_paginate plugin

2009-03-09 Thread Nilesh Kulkarni
hi all, I am using will_paginate plug_in i am getting URL as http://localhost:3000/admin/edit#/admin/edit?page=3 but i want it should be http://localhost:3000/admin/edit?page=3 how can I do it. -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~

[Rails] Re: Validate field not in model?

2009-02-27 Thread Nilesh Kumar
Hi Mike. Can you share the code snippet for the getter and setter methods you used, thanks. On Fri, Feb 27, 2009 at 1:48 PM, Mike C wrote: > > Nevermind, getter was returning a user object instead of a string. > fixed. :) > > On Feb 26, 10:10 pm, Mike C wrote: > > Ok, I did it. But in the

[Rails] controller and views

2009-02-24 Thread Nilesh Kulkarni
hi, I am writing an application in which i have list of books fetching from data base,i am using textbox to display that data from database .ie "xyz" hindi, are in textbox. i am displaying 100 record per page ,i want to use single save button that will save changes in all page instead of for eac

[Rails] patching

2009-01-19 Thread Nilesh Kulkarni
hi I have a patch and i want to apply it to image_science.rb, how can i apply please inform me -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Ra

[Rails] about RMagic

2009-01-15 Thread Nilesh Kulkarni
hi i am using attachment_fu with Rmagic(RMagick-2.7.1-ImageMagick-6.4.5-3-Q8) i am thumbnailing image.code is as follows it is thumbniling onlt .gif image not other .Is there any problem with RMagic version. what else i can do code is as bellow 1>code of model(asset) class Asset < ActiveRec

[Rails] about attachment_fu

2009-01-14 Thread Nilesh Kulkarni
I am using attachment_fu but in database it is nit storing it's hight and width what should i do. -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group

[Rails] about image_science library

2009-01-13 Thread Nilesh Kulkarni
hi. I am using attachment_fu Can anyone tell me how to get image_science image library and how to use it. -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on

[Rails] about attachment_fu

2009-01-12 Thread Nilesh Kulkarni
hi i have one bookshop project.whose database table is as follows create_table :books do |t| t.string :title t.text :description t.string :image_url t.decimal :price t.datetime :date_available end I want to use attachment_fu with this project how can i use it --

[Rails] Re: about magick library

2009-01-12 Thread Nilesh Kulkarni
Vishwanath Nayak wrote: > Hi, > > you need both of those, image magick to do the image modifications > rmagick is written to integrate image magick with ruby > > NAYAK > > On Mon, Jan 12, 2009 at 3:08 PM, Nilesh Kulkarni < > rails-mailing-l...@andrea

[Rails] about magick library

2009-01-12 Thread Nilesh Kulkarni
hi.. I am using attachment_fu in my project i want to know that which of following library is good please help me 1>imagemagick 2>RMagic -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to t

[Rails] Re: undefined method `start_form_tag'

2009-01-04 Thread Nilesh Kumar
what is the version of Rails you are using? On Sun, Jan 4, 2009 at 10:26 PM, cutegirl wrote: > > I tried to generate a form using the Rails "start_form_tag", but got > the error message "undefined method `start_form_tag' for > #". What could be missing here. Thanks for > help. > > > --~--~--

[Rails] Re: twitter gem not getting installed

2008-12-22 Thread Nilesh Kumar
m install not specifically > > the Twitter4R gem install. A workaround might be to install the JSON > > 1.1.1 version on Windows (which I believe works) or put cl.exe's > > directory in your PATH environment variable. > > > > HTH, > > Susan > > > >

[Rails] twitter gem not getting installed

2008-12-19 Thread Nilesh Kumar
Hi guys, I have to update a Twiter account from my Rails application. So I am trying to install Twitter4R api. But I am getting error when i give following command: C:\>gem install twitter4r Building native extensions. This could take a while... ERROR: Erro

[Rails] Re: mysql warning

2008-12-03 Thread Nilesh Kumar
Hi Peter. I am using XP OS and MySql server version is 5.0.41. Ruby's version: 1.8.6 and Rails version: 2.2.2 On Wed, Dec 3, 2008 at 4:31 PM, Peter De Berdt <[EMAIL PROTECTED]>wrote: > > On 03 Dec 2008, at 06:19, Nilesh Kumar wrote: > > In development.log one me

[Rails] mysql warning

2008-12-02 Thread Nilesh Kumar
g the command(gem install mysql). Can anyone tell me why it is coming as warning? Thanks, Nilesh. --~--~-~--~~~---~--~~ 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] nilesh invites you to join Zorpia

2008-10-19 Thread nilesh
Hi rubyonrails-talk! Your friend nilesh from , just invited you to his online photo albums and journals at Zorpia.com. So what is Zorpia? It is an online community that allows you to upload unlimited amount of photos, write journals and make friends. We also have a variety of skins in

[Rails] Re: map.resources doubt

2008-10-02 Thread Nilesh Kumar
Thanks Pratik for ur reply! On Wed, Oct 1, 2008 at 6:07 PM, Pratik <[EMAIL PROTECTED]> wrote: > > http://guides.rails.info/routing/routing_outside_in.html > > On Wed, Oct 1, 2008 at 12:00 PM, Nilesh Kumar <[EMAIL PROTECTED]> > wrote: > > Hi Rails experts

[Rails] Re: map.resources doubt

2008-10-02 Thread Nilesh Kumar
Thanks Chron for ur reply! On Wed, Oct 1, 2008 at 6:16 PM, Ar Chron <[EMAIL PROTECTED]>wrote: > > Nilesh Kumar wrote: > > Hi Rails experts, > > > >I have one doubt regarding map.resources. > >I am not clear with when to use :method and :col

[Rails] map.resources doubt

2008-10-01 Thread Nilesh Kumar
Hi Rails experts, I have one doubt regarding map.resources. I am not clear with when to use :method and :collection in map.resources. Please help me out. Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Googl

[Rails] Re: Problem with single form and two models

2008-09-29 Thread Nilesh Kumar
what error u r getting? On Mon, Sep 29, 2008 at 11:32 AM, Indu Rs <[EMAIL PROTECTED]>wrote: > > Hello everyone > Just started to learn ROR.Does anyone have an idea on how to store > fields in two tables using a single form? > I wish to store the registration details in 'users' table and the > la