[Rails] integrating PHP and Ruby On Rails

2012-03-22 Thread sachin kewale
hi all, can we integrate or call php function from rails application ? I have to integrate the my application with flipkart's shopping cart api. is any one used such api for shopping cart ? thanks in advanced. -- Sachin S. Kewale -- You received this message because you are subscribed to

Re: [Rails] getting error:undefined method 'current'

2012-02-29 Thread sachin kewale
On Wed, Feb 29, 2012 at 1:57 PM, Colin Law wrote: > On 29 February 2012 05:22, sachin kewale wrote: > > > > > > On Tue, Feb 28, 2012 at 5:31 PM, Colin Law > wrote: > >> > >> On 28 February 2012 11:53, sachin kewale > wrote: > >> > >

Re: [Rails] getting error:undefined method 'current'

2012-02-28 Thread sachin kewale
On Tue, Feb 28, 2012 at 5:31 PM, Colin Law wrote: > On 28 February 2012 11:53, sachin kewale wrote: > > > > > > On Tue, Feb 28, 2012 at 5:06 PM, Michael Pavling > wrote: > >> > >> On 28 February 2012 11:26, sachin kewale > wrote: > >> >

Re: [Rails] getting error:undefined method 'current'

2012-02-28 Thread sachin kewale
On Tue, Feb 28, 2012 at 5:06 PM, Michael Pavling wrote: > On 28 February 2012 11:26, sachin kewale wrote: > >i am getting an error 'undefined method 'current' for 852:Fixnum', the > > error coming for following line > > > > <%if @expert_pagi

[Rails] getting error:undefined method 'current'

2012-02-28 Thread sachin kewale
hi all, i am getting an error 'undefined method 'current' for 852:Fixnum', the error coming for following line <%if @expert_pagination.current.previous%> <%else%> <%end%> can anyone know why it is coming ? i am using Ruby 1.8.6,rails :2.3.11 and gem 1.6.2 -- Sachin -- You recei

[Rails] issue with greater than operator in rhtml

2012-02-27 Thread sachin kewale
hi all, i have one issue with the greater than operator ,how should i use greater than operator ? i have condition <%if @c_page > 5%> it giving error 'undefined method `>' for nil:NilClass' thanks in advanced Regards Sachin -- -- You received this message because you are subscribed to the G

[Rails] Port 80 issue

2012-02-27 Thread sachin kewale
hi all, i have strange problem,i have two instances running on live of my app. one on port 80 and other on port 8881 but the port 80 instance loading very slowly as compare to port 8881 instance. you check on url's: http://www.suggestica.com/ http://www.suggestica.com:8881/ is an

Re: [Rails] WEBrick WEBrick server became extremely slow

2012-02-02 Thread sachin kewale
On Thu, Feb 2, 2012 at 7:40 PM, Javier Quarite wrote: > > > On Thu, Feb 2, 2012 at 8:13 AM, sachin kewale wrote: > >> hi all, >> for some reason my WEBrick server became extremely slow on live.i am >> using Fedora 14 and Ruby 1.8.7 ,Rails 2.3.11 and RubyGem 1.6.2

[Rails] WEBrick WEBrick server became extremely slow

2012-02-02 Thread sachin kewale
hi all, for some reason my WEBrick server became extremely slow on live.i am using Fedora 14 and Ruby 1.8.7 ,Rails 2.3.11 and RubyGem 1.6.2. is there any reason why this would be the case? -- Thanks and Regards Sachin S. Kewale -- You received this message because you are subscribed to the

Re: [Rails] Re: captcha issue

2012-01-31 Thread sachin kewale
On Tue, Jan 31, 2012 at 11:15 AM, sachin kewale wrote: > > > On Tue, Jan 31, 2012 at 11:00 AM, subbarao wrote: > >> ** >> On Tuesday 31 January 2012 10:43 AM, sachin kewale wrote: >> >> >> >> On Mon, Jan 30, 2012 at 6:44 PM, subbarao wrote: >

Re: [Rails] Re: captcha issue

2012-01-30 Thread sachin kewale
On Tue, Jan 31, 2012 at 11:00 AM, subbarao wrote: > ** > On Tuesday 31 January 2012 10:43 AM, sachin kewale wrote: > > > > On Mon, Jan 30, 2012 at 6:44 PM, subbarao wrote: > >> On Monday 30 January 2012 01:16 PM, sachin kewale wrote: >> >> >> >

Re: [Rails] Re: captcha issue

2012-01-30 Thread sachin kewale
On Mon, Jan 30, 2012 at 6:44 PM, subbarao wrote: > ** > On Monday 30 January 2012 01:16 PM, sachin kewale wrote: > > > > On Tue, Jan 24, 2012 at 6:06 PM, sachin kewale wrote: > >> hi all, >>i have captcha image on Registration popup but on local the captch

[Rails] Re: captcha issue

2012-01-29 Thread sachin kewale
On Tue, Jan 24, 2012 at 6:06 PM, sachin kewale wrote: > hi all, >i have captcha image on Registration popup but on local the captcha > image and code is not coming. >i have install RMagick and gd2 gem also.It gives following error, > > MissingSourceFile (no such

[Rails] captcha issue

2012-01-24 Thread sachin kewale
hi all, i have captcha image on Registration popup but on local the captcha image and code is not coming. i have install RMagick and gd2 gem also.It gives following error, MissingSourceFile (no such file to load -- GD): lib/captcha_image.rb:22 app/controllers/login_controller.rb:385:in

Re: [Rails] help on session in Ruby

2012-01-23 Thread sachin kewale
On Fri, Jan 20, 2012 at 4:41 PM, Colin Law wrote: > On 20 January 2012 10:54, sachin kewale wrote: > > > > > > On Fri, Jan 20, 2012 at 3:59 PM, Colin Law > wrote: > >> > >> On 20 January 2012 10:20, sachin kewale wrote: > >> > hi all,

Re: [Rails] help on session in Ruby

2012-01-20 Thread sachin kewale
On Fri, Jan 20, 2012 at 3:59 PM, Colin Law wrote: > On 20 January 2012 10:20, sachin kewale wrote: > > hi all, > > i have one issue after entering username and password on login popup > and > > clicking login button the user is logged in but i have to refresh the ur

[Rails] help on session in Ruby

2012-01-20 Thread sachin kewale
hi all, i have one issue after entering username and password on login popup and clicking login button the user is logged in but i have to refresh the url i have check the log but nothing is there,i have set the session key and secret in 'session_store.rb', i am running my local app on 127.0.0

Re: [Rails] Accessing the ROR Application

2012-01-18 Thread sachin kewale
la > twitter: @avmanansala <https://twitter.com/#%21/avmanansala> > skype: bulcrack > > > On Tue, Jan 17, 2012 at 2:01 PM, sachin kewale wrote: > >> hi all, >> >>I successfully deployed the ROR project on Centos server,i have one >> question how ca

Re: [Rails] error on starting ruby server on Fedora 14

2012-01-18 Thread sachin kewale
On 1/18/12, Peter Vandenabeele wrote: > On Wed, Jan 18, 2012 at 10:43 AM, sachin kewale > wrote: > >> hi all, >> >> i am getting following error on starting server by using "ruby >> script/server webrick -b some_Ip_address" on Fedora 14 ,is anyone

[Rails] error on starting ruby server on Fedora 14

2012-01-18 Thread sachin kewale
hi all, i am getting following error on starting server by using "ruby script/server webrick -b some_Ip_address" on Fedora 14 ,is anyone know why this is coming ? INFO WEBrick 1.3.1 [2012-01-18 04:37:13] INFO ruby 1.8.7 (2011-02-18) [i386-linux] [2012-01-18 04:37:13] WARN TCPServer Error: Ca

[Rails] Accessing the ROR Application

2012-01-16 Thread sachin kewale
hi all, I successfully deployed the ROR project on Centos server,i have one question how can i access that application from my machine ? on starting WEBRick server it is started on this ip http://0.0.0.0:3006, i want to set my machine ip in place of 'http://0.0.0.0:3006' and also how i ca

[Rails] installing Ruby On Rails on Centos

2012-01-11 Thread sachin kewale
hi all, i am trying to install Ruby on rails on Centos,but giving following error for gcc complier "gcc compiler is missing" is there any other alternative to install Ruby on rails on Centos or steps to install ruby on rails on Centos ? -- Thanks Sachin S. Kewale -- You received this m

[Rails] error in your SQL syntax

2012-01-08 Thread sachin kewale
hi all, i am getting the following exception ,can anyone know what is the problem ? or can any one what is SQL syntax for following query to run in ruby on rails ? i am using Ruby: 1.8.7 (2011-02-18 patchlevel 334) [i386-mingw32] Rails 2.3.11 gem :1.6.2 Processing ExpertController#view_exper

[Rails] updating rails version to 3.1.3 get error

2012-01-03 Thread sachin kewale
hi all, i have ruby : 1.8.7 rails :2.3.11 and rubygem:1.6.2 installed on my Windows sys. my application work without error .I have upgraded the environment to gem:1.8.12,rails:3.1.3 ,ruby:1.9.2 i have getting the following error on starting the Webrick server D:/Hemant/Suggestica_setup/Ruby

[Rails] form_tag issue

2011-12-28 Thread sachin kewale
hi all, i am getting the following warning "warning: don't put space before argument parentheses " when i am using the 'form_tag' in rhtml <% form_tag ({:name=>'myform' ,:action => 'add_suggestion',:page => @session_page},:multipart=>true) %> the 'form_tag' is ended by '<% end %>' i am using R

[Rails] regex issues and up gradation Ruby ,Rails and gem

2011-12-26 Thread sachin kewale
hi all, i am getting the following warning for "numeric_slug = /^[0-9]+$/" this line in my model class, "warning: character class has `-' without escape" can anyone know the what is the escape character used in regex ? i am using Ruby:1.8.7,gem:1.6.2,Rails:2.3.11. Also, i want to up gra

Re: [Rails] http session nil

2011-12-23 Thread sachin kewale
On Fri, Dec 23, 2011 at 5:18 PM, Michael Pavling wrote: > On 23 December 2011 11:45, sachin kewale wrote: > > thanks Michael for responding,my question is how that http session is > set in > > ruby on rail ? > > because in following code '@session' is coming n

Re: [Rails] http session nil

2011-12-23 Thread sachin kewale
On Fri, Dec 23, 2011 at 2:41 PM, Michael Pavling wrote: > On 23 December 2011 07:19, Gomzi Pai wrote: > > In rails session data is accessible only in controller. And thats how its > > meant to be according to MVC. > > Really... based on the evidence of all the crappy apps I keep > inheriting, th

Re: [Rails] http session nil

2011-12-22 Thread sachin kewale
ery bad and not supposed to be > done. If you are accessing session data in views, i think you need to > rethink your design to be more inline with mvc pattern. > > Gautam Pai > > On Fri, Dec 23, 2011 at 12:40 PM, sachin kewale wrote: > >> hi all, >>i am new in ruby

[Rails] http session nil

2011-12-22 Thread sachin kewale
hi all, i am new in ruby on rails,i have one issue regarding the session in ruby on rails.I am using session , i have following condition in my rhtml <%if @session['user'].first_name == "admin"%> but this 'session' is coming nil.i tried by setting config.action_controller.sess

Re: [Rails] nil object Error

2011-12-16 Thread sachin kewale
in `start_thread' D:/Ruby187/lib/ruby/1.8/webrick/server.rb:95:in `start' D:/Ruby187/lib/ruby/1.8/webrick/server.rb:92:in `each' D:/Ruby187/lib/ruby/1.8/webrick/server.rb:92:in `start' D:/Ruby187/lib/ruby/1.8/webrick/server.rb:23:in `start' D:/Ruby187/lib

[Rails] nil object Error

2011-12-15 Thread sachin kewale
hi all, i am getting following error ,i can't figure it out why and from where it is coming ? please help me out to resolved this error if anyone knows about this issue. i am using following env. O.S:Windows XP Ruby:ruby 1.8.7 (2011-02-18 patchlevel 334) [i386-mingw32] Rails:Rails 2.3.11

[Rails] <%= render_component %> Tag cloud issue for rails version 2.3.11

2011-12-11 Thread sachin kewale
hi all, in my application there is tag's cloud in old code which is load using following code <%= render_component :controller => "controller_name", :action => "tag_cloud_homepage"%> now i upgrade the ruby,gem and rails version to Ruby :1.8.7 Rails :2.3.11 gem :1.6.2 and i am using Windows X

Re: [Rails] unknown error

2011-12-09 Thread sachin kewale
also i am using Windows XP OS. On Fri, Dec 9, 2011 at 5:02 PM, Colin Law wrote: > On 9 December 2011 10:15, sachin kewale wrote: > > that previous problem is not coming now.I have application developed in > old > > ruby and rails version so switching it directly > > t

[Rails] error in installing 'render_component' plugin

2011-12-09 Thread sachin kewale
hi all, I have a application that it use view/layout/main.rhtml, in this file I have: <%= render_component :controller => 'car', :action =>'index'%> But there is one problem, it display this problem: undefined method `render_component' for # How can I resolve this problem? Regards Sachin S. K

Re: [Rails] unknown error

2011-12-09 Thread sachin kewale
gards Sachin S. Kewale On Fri, Dec 9, 2011 at 3:32 PM, Colin Law wrote: > On 9 December 2011 09:53, sachin kewale wrote: > > hi , > > can you know how to install "render_component" ? > > Is this a continuation of your previous problem? If not then it would > have

Re: [Rails] unknown error

2011-12-09 Thread sachin kewale
hi , can you know how to install "render_component" ? for Rail version 2.3.11 and ruby :1.6.2 and ruby :1.8.7 Regards Sachin S. Kewale On Fri, Dec 9, 2011 at 2:44 PM, Colin Law wrote: > On 9 December 2011 05:38, sachin kewale wrote: > > hi all, > > i am using f

[Rails] unknown error

2011-12-08 Thread sachin kewale
hi all, i am using following version for Ruby ,Rails and gem: Ruby :1.8.7 rails :2.3.11 gem :1.6.2 server started ,on opening in browser it shows the following error: We are sorry that we are not able to process your request.Please try again later System Error. please help me

[Rails] Error for uuid

2011-12-08 Thread sachin kewale
hi all, i am getting following error when running my code .Is anyone who knows who to install uuid gem ? or what are gems required before install uuid gem ? "no such file to load -- uuid" Ruby On Rails version using :- gem :1.7.2 ruby:1.8.7 rails:2.3.4 Thanks and Regards Sachin S.

Re: [Rails] Re: Error in ROR project

2011-12-07 Thread sachin kewale
On Wed, Dec 7, 2011 at 10:59 PM, Luis Lavena wrote: > On Dec 7, 2:39 am, sachin kewale wrote: > > hi all, > > when i update my Ruby :1.9.2 and Rails :2.3.4 and gem :1.8.12 version i > get > > following error , > > please help me to resolve this issue, > > &

[Rails] regex syntax

2011-12-07 Thread sachin kewale
hi all, how to write this regex in Rails 2.3.4 ,Ruby:1.9.2 and gem :1.8.12 map.connect '/:slug', :controller => 'expert', :action => 'view_expert_brief',:slug=>/^([a-z]|[A-Z])*$/ thanks in advanced. Regards Sachin S. Kewale -- (¨ `·.·´ ¨) Always `·.¸(¨ `·.·´ ¨) Keep (¨ `·.· ´¨)¸.·´ Smiling!! `

[Rails] error regarding ActiveRecord

2011-12-06 Thread sachin kewale
hi all, i have one got one more error ,but i can't figure it why this coming ? please anyone who knows details about reply to this post. can't convert ActiveRecord::StatementInvalid into String Thanks and Regards Sachin S. Kewale -- (¨ `·.·´ ¨) Always `·.¸(¨ `·.·´ ¨) Keep (¨ `·.· ´¨)¸.·´ Smili

[Rails] Error in ROR project

2011-12-06 Thread sachin kewale
hi all, when i update my Ruby :1.9.2 and Rails :2.3.4 and gem :1.8.12 version i get following error , please help me to resolve this issue, D:/Ruby192/lib/ruby/1.9.1/webrick/httpserver.rb:56:in `eof?' D:/Ruby192/lib/ruby/1.9.1/webrick/httpserver.rb:56:in `run' D:/Ruby192/lib/ruby/1.9.1/web

[Rails] About Latest version of ROR

2011-12-04 Thread sachin kewale
hi all, i have application developed in following ruby ,rails and gem version i want to upgrade it with latest version,can anyone tell what are stable version for ruby,rails and gem ? and also with compability for Ruby and Rails version with latest gem version ? gem version:1.3.7 ruby version:r

[Rails] Error in ROR App on running code

2011-12-01 Thread sachin kewale
hi all , I am getting error when i try to run my app. from Radrails, also when installing "gem install ruby-gd" it shows some error, Can anyone provide the right installation steps and libraries name which required to install gd libraries ? thanks in advanced .. D:/Ruby187/lib/ruby/si