Re: [Rails] Re: Need help for writing Api in Rails 5

2017-01-31 Thread Tushar Garg
Thanks bro for sharing this. I will check and implement it On Jan 31, 2017 9:28 PM, "Carlos Ramirez" <car...@cetrasoft.com> wrote: > Hey Tushar, > > There are a lot of great resources online for creating APIs in Rails 5 > (with its new API-only mode). > > One o

Re: [Rails] Need help for writing Api in Rails 5

2017-01-28 Thread Tushar Garg
/articles/2016/06/18/creating-rails5-api-only-application-following-jsonapi-specification/ On Saturday, January 28, 2017 at 9:43:14 PM UTC+5:30, Hassan Schroeder wrote: > > On Sat, Jan 28, 2017 at 5:11 AM, Tushar Garg <tusha...@daffodilsw.com > > wrote: > > > I am new to rai

[Rails] Re: Need help for writing Api in Rails 5

2017-01-28 Thread Tushar Garg
On Saturday, January 28, 2017 at 7:57:03 PM UTC+5:30, Tushar Garg wrote: > > Hi All, > > I am new to rails. > I want to write restful api's in rails. I start following the "API on > Rails" book. > By following that book, I come to know that there are lot of thi

Re: [Rails] Need help for writing Api in Rails 5

2017-01-28 Thread Tushar Garg
/2016/06/18/creating-rails5-api-only-application-following-jsonapi-specification/ On Saturday, January 28, 2017 at 9:43:14 PM UTC+5:30, Hassan Schroeder wrote: > > On Sat, Jan 28, 2017 at 5:11 AM, Tushar Garg <tusha...@daffodilsw.com > > wrote: > > > I am new to rai

[Rails] Need help for writing Api in Rails 5

2017-01-28 Thread Tushar Garg
ep by step tutorial for writing Rest APi in rails 5 Thanks Tushar Garg -- 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 rubyo

[Rails] How to allow email blank in user table which is created using devise and cancan.

2013-08-07 Thread Tushar Patil
= [:username] attr_accessible :email, :username, :password, :password_confirmation, :remember_me, :role_ids, :roles validates :email , :presence = false *end* Please, let me know where i am wrong. Thanks, Tushar Patil. -- You received this message because you are subscribed to the Google Groups

[Rails] How to create first user for sign in using devise

2013-07-22 Thread Tushar Patil
Hi, I want to authentication for sign in and sign out, i add gem file and create a user model using devise in rails3, i want to create a user for first sign in and sign out, how can i create, any suggestion. -- You received this message because you are subscribed to the Google Groups

[Rails] How to use twitter bootstrap

2013-07-20 Thread Tushar Patil
Hi, I have a Ruby 1.9.3p194 and Rails 4.0.0, Can i used twitter-bootstrap for designing with these version, Or it is compatible with these version, also tell me how to make rails application using twitter bootstrap. Thanks..! -- You received this message because you are subscribed to

Re: [Rails] help regarding internationalization for bootstrap button.

2013-07-18 Thread Tushar Patil
:31:08 PM UTC+5:30, tamouse wrote: Pardon the follow up on myself… On Jul 17, 2013, at 7:55 AM, Tamara Temple tamous...@gmail.comjavascript: wrote: On Jul 17, 2013, at 4:39 AM, Colin Law cla...@googlemail.comjavascript: wrote: On 17 July 2013 12:24, Tushar Patil tushar

Re: [Rails] help regarding internationalization for bootstrap button.

2013-07-18 Thread Tushar Patil
As per your suggestion i only put one space between key value, but it still won't work. On Thu, Jul 18, 2013 at 4:01 PM, Walter Lee Davis wa...@wdstudio.comwrote: On Jul 18, 2013, at 4:51 AM, Tushar Patil wrote: Hi, Here i mention my hi.bootstrap.yml file, and i use create company

[Rails] help regarding internationalization for bootstrap button.

2013-07-17 Thread Tushar Patil
Hi, I am trying to convert my application in hindi, I am stuck in the renaming submit button name, It works fine for hindi but not working for english, it gives syntax error, here is my submit button code %= f.submit t('.Create Company', :default = t(helpers.links.Create Company)), :class =

[Rails] Want a sample working source code for multi language application

2013-07-15 Thread Tushar Patil
If any one have a sample rails application, which is in multiple language, please send me or just give me the link. I am trying to convert my application in Marathi that's why i need it. Thanks, Tushar Patil. -- You received this message because you are subscribed to the Google Groups Ruby

Re: [Rails] How to convert web application in multiplie language (MARATHI)

2013-07-13 Thread Tushar Patil
Thanks Dhiraj, I will go through that. Thank you for your time and consideration. Thanks, Tushar Patil. Mob - +917798789759. On Sat, Jul 13, 2013 at 9:33 AM, Dheeraj Kumar a.dheeraj.ku...@gmail.comwrote: Next time, just google. http://edgeguides.rubyonrails.org/i18n.html -- Dheeraj Kumar

[Rails] How to convert web application in multiplie language (MARATHI)

2013-07-12 Thread Tushar Patil
where i start and how. -Thanks..! Tushar Patil -- 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

[Rails] Face Problem to create a new app

2013-07-10 Thread Tushar Patil
Bundler version: bundler (1.1.4) This Gemfile requires a different version of Bundler. Perhaps you need to update Bundler by running `gem install bundler`? Please let me know where i am wrong, Thanks.. Tushar Patil. -- You received this message because you are subscribed to the Google Groups

[Rails] Regarding Future in ROR

2013-06-02 Thread Tushar Patil
Hi, I am recently join a startup company which is working on ROR, I have only 3 months industrial experience and working on ROR. I am too worried about technology i choose to work, Is there a future in ROR. Please reply ASAP. -Tushar Patil. PUCSD -- You received this message because you

[Rails] Problem with blocking the user

2012-06-28 Thread Tushar Gandhi
Hi, I have a problem with blocking user as follows:- We have a Admin Panel from where Admin can block the user which is working fine. Suppose the user t...@abc.com is login and he is doing spam on our site. Then Admin has decided to block that user. Admin blocks that user but the user hasn't

[Rails] Re: Problem with blocking the user

2012-06-28 Thread Tushar Gandhi
add a before_filter in the controller which validates the above field. On Thu, Jun 28, 2012 at 1:05 PM, Tushar Gandhi li...@ruby-forum.com wrote: How can I fix this? I do not want to add any filter for each request. Ruby on Rails: Talk group. To post to this group, send email to rubyonrails

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

2012-01-02 Thread Tushar Gandhi
why so? any reason behind it. Thanks, Tushar -- 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.com. To unsubscribe from

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

2012-01-01 Thread Tushar Gandhi
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-forum.com/. -- You received this message because you are subscribed to the Google

[Rails] no such file to load -- rails/commands/runner (LoadError)

2011-05-20 Thread Tushar Gandhi
=/usr/local/rvm/rubies/ruby-1.9.2-p180/bin $MYPATH/ruby runner test.rb -e test Can anyone tell me what is the wrong with this? Thanks, Tushar -- 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

[Rails] Command failed with status (1): [bundle exec cucumber

2011-03-18 Thread Tushar Gandhi
'rails', '3.0.5' # Bundle edge Rails instead: # gem 'rails', :git = 'git://github.com/rails/rails.git' gem 'mysql2' group :development, :test do gem rspec-rails, = 2.0.0 gem cucumber-rails, = 0.3.2 gem webrat, = 0.7.2 end Thanks, Tushar -- Posted via http://www.ruby-forum.com/. -- You received

[Rails] Re: Couldn't find 'rspec' generator

2011-03-02 Thread Tushar Gandhi
I am on rails 2.3.8 Clint Krollwood wrote in post #984887: Hi there, Are you on rails 2.x.x or 3 ? -- 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

[Rails] Couldn't find 'rspec' generator

2011-03-01 Thread Tushar Gandhi
appreciated. Thanks, Tushar -- 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.com. To unsubscribe from this group, send email

[Rails] Geo-location using the GeoIp plugin

2011-02-25 Thread Tushar Gandhi
on right path? Thanks, Tushar -- 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.com. To unsubscribe from this group, send email

[Rails] Adding images for pagination links in will_paginate

2011-02-16 Thread Tushar Gandhi
Hi, I am using will_paginate for pagination. I have to show only Previous and Next links, that I have achieved by :page_links=false parameter. Now I want to show the images instead of Previous and Next labels. Can anyone tell how to achieve this in will_paginate? Thanks, Tushar -- Posted via

[Rails] Including plugin module giving an error

2011-02-14 Thread Tushar Gandhi
Hi, I am developing a plugin for database search in rails 3. I have created a plugin with name db_search. I have written following code in /vendor/plugins/db_search/lib/db_search.rb require File.join(File.dirname(__FILE__), 'db_search/core') Then I have written following code in

[Rails] Map integration with showing places within the particular radius

2011-02-10 Thread Tushar Gandhi
Hi, I have to do the map integration in my upcoming project. Also, in the map I have to show the places which are nearer to that place within the 10 miles. Is anyone have any idea how to do this? Thanks, Tushar -- Posted via http://www.ruby-forum.com/. -- You received this message because

[Rails] Model validation are not displaying properly

2011-02-08 Thread Tushar Gandhi
) mechanize (1.0.0) mysql (2.8.1) nokogiri (1.4.4) rack (1.2.1, 1.1.0) rack-mount (0.6.13) rack-test (0.5.6) rails (2.3.8) railties (3.0.3) rake (0.8.7) --- Can anyone tell me what is wrong with it. Thanks, Tushar -- Posted via http://www.ruby-forum.com

[Rails] Re: Model validation are not displaying properly

2011-02-08 Thread Tushar Gandhi
Are you saying it is due to gem i18n. Thanks, Tushar -- 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.com. To unsubscribe from

[Rails] Re: Model validation are not displaying properly

2011-02-08 Thread Tushar Gandhi
Hi, After uninstalling the i18n gem it is working fine. Thanks, Tushar -- 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.com

[Rails] send_data damaging the PDF document

2011-02-01 Thread Tushar Gandhi
location. Thanks, Tushar -- 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.com. To unsubscribe from this group, send email

[Rails] Re: send_data damaging the PDF document

2011-02-01 Thread Tushar Gandhi
Hi, Thanks for your reply, but still it is not working. Any other suggestion. Thanks, Tushar -- 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

[Rails] Extract text from PDF file

2011-01-31 Thread Tushar Gandhi
Hi, In my upcoming application we are uploading the pdf files. After uploading the pdf file I have to extract the text from pdf and display it to user. can anyone tell me how to extract text from pdf file? Is there any plugin or gem present for this? Thanks, Tushar -- Posted via http://www.ruby

[Rails] Problem with date_select form helper

2011-01-03 Thread Tushar Gandhi
populated with the days from 1 to 31, but it is not right in case of the month Feb as well as the months which has the number of days are 30. Is there a way to solve this problem? so that clicking on the month name the corresponding days will change. Thanks, Tushar -- Posted via http://www.ruby

[Rails] nginx deployment

2010-10-26 Thread Tushar Gandhi
; #index index.html index.htm; #} #} } Can anyone tell me how to solve this? Thanks, Tushar -- 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

[Rails] Google map integration

2010-07-28 Thread Tushar Gandhi
are located. Can anyone tell how can I do this? Thanks, Tushar -- 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...@googlegroups.com. To unsubscribe from

[Rails] Google-geocode gem giving an error

2010-07-15 Thread Tushar Gandhi
is the wrong with my code? Thanks, Tushar -- 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...@googlegroups.com. To unsubscribe from this group, send

[Rails] Sphinx search not indexing the new record

2010-07-14 Thread Tushar Gandhi
first_name indexes last_name indexes email end end Can anyone tell me how to solve this? Thanks, Tushar -- 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

[Rails] Google-geocode gem not giving an error

2010-07-14 Thread Tushar Gandhi
is the wrong with my code? Thanks, Tushar -- 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...@googlegroups.com. To unsubscribe from this group, send

[Rails] Searching on google map

2010-07-14 Thread Tushar Gandhi
have an idea how to do thos? Thanks, Tushar -- 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...@googlegroups.com. To unsubscribe from this group

[Rails] Re: How to set JQuery's effect for normal link

2010-07-10 Thread Tushar
| page| page.select('body').hide page[:details].visual_effect :fadeOut # your smoe other effect end % -- Tushar http://pragtech.co.in -- 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] singleton can't be dumped in rails session

2010-06-29 Thread Tushar Gandhi
be dumped in rails session. It seems that SOAP object is instance of singleton class and due to that it is not allowing to dump it. Is there any other way to solve this? Thanks, Tushar -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed

[Rails] Use reflection to show the list

2010-06-23 Thread Tushar Gandhi
will iterate on attributes array and list out the attribute values during rendering? Any help appreciated. Thanks, Tushar -- 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

[Rails] in `const_missing': uninitialized constant CGI::Session

2010-06-21 Thread Tushar Gandhi
': uninitialized constant CGI::Session (NameError Anyone have any idea How to solve this issue? I already renamed my application.rb to application_controller.rb Thanks, Tushar -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby

[Rails] Showing youtube video

2010-06-09 Thread Tushar Gandhi
tell me how to do this? Is there any plugin/gem avaliable for this? Thanks, Tushar -- 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

[Rails] Re: Showing youtube video

2010-06-09 Thread Tushar Gandhi
Thanks Saurabh. It is working fine. -- 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...@googlegroups.com. To unsubscribe from this group, send

[Rails] Re: Showing youtube video

2010-06-09 Thread Tushar Gandhi
Hi, I have one problem. How can I get the video thumbnails like what we will see on youtube on right side? Thanks, Tushar Tushar Gandhi wrote: Thanks Saurabh. It is working fine. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google

[Rails] gem install mysql giving error on linux

2010-06-08 Thread Tushar Gandhi
-2.8.1/ext/mysql_api/gem_make.out Can anyone tell me how to solve this? Thanks, Tushar -- 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

[Rails] Re: Rails (and MySQL) on Linux - gem install mysql

2010-06-08 Thread Tushar Gandhi
Hi, I am also getting same error. I tried all options but still error is there. Can anyone point me to correct answer? I don't why the rails have this much of trouble. Thanks, Tushar -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed

[Rails] Re: gem install mysql giving error on linux

2010-06-08 Thread Tushar Gandhi
have any answer on this. Thanks, Tushar -- 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...@googlegroups.com. To unsubscribe from this group, send

[Rails] Model validation giving problem

2010-06-07 Thread Tushar Gandhi
idea how to solve this? Thanks Tushar -- 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...@googlegroups.com. To unsubscribe from this group, send email

[Rails] Re: Model validation giving problem

2010-06-07 Thread Tushar Gandhi
Hi Rajeev, I just added the model validations for understanding. Whatever model validation you have added are same in my model. Thanks, Tushar -- 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] Re: rake gems:freeze GEM=pdf-writer not working on MAC

2010-06-07 Thread Tushar Gandhi
Hi, I just done the gem list. My gem list shows I have rubygems-update(1.3.7). How can I install rubygems version of 1.3.6? Thanks, Tushar -- 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] Re: rake gems:freeze GEM=pdf-writer not working on MAC

2010-06-07 Thread Tushar Gandhi
Hi, I have installed rubygems-update 1.3.6. Still the issue has not resolved. Any other way. Thanks, Tushar -- 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

[Rails] Re: rake gems:freeze GEM=pdf-writer not working on MAC

2010-06-06 Thread Tushar Gandhi
Hi, If that is the probelm then the command should also not work on windows. But it is working on windows. What is the reason? Thanks Tushar Matt Jones wrote: It looks like Gem::Commands::UnpackCommand#get_path changed it's signature (from 2 args to 1) fairly recently - and much more recently

[Rails] rake gems:freeze GEM=pdf-writer not working on MAC

2010-06-03 Thread Tushar Gandhi
/rails.rb:10) rake aborted! wrong number of arguments (2 for 1) (See full trace by running task with --trace) But the same command work on windows. Can anyone help me out for this. Thanks, Tushar -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed

[Rails] Re: rake gems:freeze GEM=pdf-writer not working on MAC

2010-06-03 Thread Tushar Gandhi
:in `run' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/bin/rake:31 /usr/bin/rake:19:in `load' /usr/bin/rake:19 Thanks, Tushar -- 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

[Rails] mysql driver giving problem on MAC 32 Bit

2010-06-02 Thread Tushar Gandhi
/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require' from script/server:3 Can anyone tell me what is fix for this error? Thanks, Tushar -- Posted via http://www.ruby-forum.com/. -- You received

[Rails] Re: mysql driver giving problem on MAC 32 Bit

2010-06-02 Thread Tushar Gandhi
Hi, I have MAC OS version 10.6.2. Frederick Cheung wrote: On Jun 2, 12:55�pm, Tushar Gandhi li...@ruby-forum.com wrote: HI, I have MAC operating system which is 32 bit. I am facing a problem while installing the mysql driver. I have installed mysql gem with following command:- sudo env

[Rails] Re: mysql driver giving problem on MAC 32 Bit

2010-06-02 Thread Tushar Gandhi
Hi, No it's 32-bit OS -- 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...@googlegroups.com. To unsubscribe from this group, send email to

[Rails] Re: mysql driver giving problem on MAC 32 Bit

2010-06-02 Thread Tushar Gandhi
Hi, How can I found that my ruby application is 32 bit or 64 bit? My ruby version is as follows:- ruby 1.8.7 (2008-08-11 patchlevel 72) [universal-darwin10.0] Thanks, Tushar -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups

[Rails] Re: mysql driver giving problem on MAC 32 Bit

2010-06-02 Thread Tushar Gandhi
Thanks Guys, I have solved the error by installing the mysql 64 bit version and installing the gem. Thanks for your suggestions. -- 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

[Rails] validates_format_of with condition

2010-04-16 Thread Tushar Gandhi
It is working fine, but in my application email id is not manadatory. So how should add the condition in this validator so that it will validate the email only when the email address is present. Can anyone help me out? Thanks, Tushar -- Posted via http://www.ruby-forum.com/. -- You received this message

[Rails] Adding javascript onchange event on select tag

2010-04-13 Thread Tushar Gandhi
Hi, I am writing following code for showing the drop down:- %= select(test, type, [test1, test2], :onchange=alert('Test');)% My problem is I have to add onchange event and call a javascript. Can anyone point me what is problem with my syntex? Thanks, Tushar -- Posted via http://www.ruby

[Rails] Problem for CSV import

2010-04-12 Thread Tushar Gandhi
Hi, I am doing a finctionality to import csv file. My CSV file is like this Header-- Name,Address,Details Data-- Tushar, sangavi,pune, I am a ror developer My controller code is:- @parsed_file=CSV::Reader.parse(params[:dump][:file]) @parsed_file.each do |row| p row[1] p row[2] end

[Rails] Re: Security issue in app

2010-04-05 Thread Tushar Gandhi
Thanks Priyanka It is working. Priyanka Pathak wrote: Hi, Use rails HTML escaping method - html_escape(s) or h(s) to fix that issue. Thanks, Priyanka Pathak -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby

[Rails] List of gems and plugins available in ROR

2010-03-30 Thread Tushar Gandhi
Hi, Can I get the list of all gems and plugins avaliable for ror? Can anyone know URl where I can find list? Thanks Tushar -- 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

[Rails] Store created_at in Hawaii's time zone UTC-10

2010-03-24 Thread Tushar Gandhi
Hi, I have to use Hawaii's time zone which is UTC-10 for my created_at. Can anyone tell me how can I solve this problem? Thanks, Tushar -- 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

[Rails] Re: Store created_at in Hawaii's time zone UTC-10

2010-03-24 Thread Tushar Gandhi
Yes, I agreed. But still I need to store the date in Hawai timezone. How can I set the time zone for Time.now? Thanks, Tushar Colin Law wrote: On 24 March 2010 10:39, Tushar Gandhi li...@ruby-forum.com wrote: Hi, I have to use �Hawaii's time zone which is UTC-10 for my created_at. Can anyone

[Rails] Redirect to the url after login

2010-03-09 Thread Tushar Gandhi
successful login he should be redirected to accept_friendship URL But it doesn't it goes to the default page after successful login. How should I fix this? Thanks, Tushar Gandhi -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups

[Rails] Re: Merging Spree and BrowserCMS for my app

2010-02-22 Thread Tushar Gandhi
table. I have intsalled the browser cms gem due to that all code went to the ruby dir. How would I solve this problem? How should I override the model? Do you have any idea? Thanks, Tushar -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed

[Rails] Override the user model in BCMS

2010-02-22 Thread Tushar Gandhi
Hi, I have to override the BCMS models. I have installed the browser cms gem. I have to override the user.rb, Can anyone tell me how should I do that? Thanks, Tushar Gandhi. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups

[Rails] Insert into table without his model

2010-02-10 Thread Tushar Gandhi
Hi, I have contacts table. I have to insert and update contacts table. Is that be possible to do this without having the contact.rb model? Can I make direct interaction to the contacts table? Can anyone help me out? Thanks, Tushar Gandhi -- Posted via http://www.ruby-forum.com/. -- You

[Rails] Re: Insert into table without his model

2010-02-10 Thread Tushar Gandhi
::Base.connection.execute(select * from contacts where id=1) Still it is givng me error that ERROR: Mysql::Error: Table development1.contacts' doesn't exist Can you tell me what is wrong with this? Thanks, Tushar Gandhi Frederick Cheung wrote: Fred -- Posted via http://www.ruby-forum.com

[Rails] Encrypt a user password using Authlogic

2010-02-04 Thread Tushar Gandhi
with crypted_password is equal to password. How should I fix this? Any help appreciated? Thanks, Tushar Gandhi -- 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

[Rails] Re: Encrypt a user password using Authlogic

2010-02-04 Thread Tushar Gandhi
this:- 9b2dcddea0f2ecab44c195b36035cab8da14e719b51c696e704f885f29f8310939fb980d11434c545b43cfa9390b1e6b3d5dbb82f97289da9a1740eadda6b5ae Is it right? Thanks, Tushar My users.rb as follows :- acts_as_authentic do |c| c.transition_from_restful_authentication = true end It is creating the entry in users table

[Rails] Re: Encrypt a user password using Authlogic

2010-02-04 Thread Tushar Gandhi
this:- 9b2dcddea0f2ecab44c195b36035cab8da14e719b51c696e704f885f29f8310939fb980d11434c545b43cfa9390b1e6b3d5dbb82f97289da9a1740eadda6b5ae Is it right? Thanks, Tushar It is creating the entry in users table with crypted_password is equal to password. How should I fix this? Any help appreciated? Thanks, Tushar Gandhi -- Posted via

[Rails] Encrypting the password using Authlogic

2010-02-04 Thread Tushar Gandhi
the password like this:- 9b2dcddea0f2ecab44c195b36035cab8da14e719b51c696e704f885f29f8310939fb980d11434c545b43cfa9390b1e6b3d5dbb82f97289da9a1740eadda6b5ae Is it right? Or I am missing something. Can anyone please help me out for this? Thanks, Tushar Gandhi -- Posted via http://www.ruby-forum.com

[Rails] Use establish_connection

2010-02-01 Thread Tushar Gandhi
this ActiveRecord::Base.establish_connection( :adapter = mysql , :host = localhost , :database = railsdatabase , :username = railsusername , :password = railspassword ) contact=Contact.find(2) contact.name=Tushar Gandhi contact.save Whether it will point to the contacts table of development2 database

[Rails] Re: Use establish_connection

2010-02-01 Thread Tushar Gandhi
Thanks Sharagoz. Yes it makes sense, to add the configuraion on model level. Sharagoz -- wrote: If you are always going to CRUD contacts in development2, then you can set the connection on the model: in contact.rb class Contact ActiveRecord::Base establish_connection(:development2) end

[Rails] Will_paginate not working with the ajax

2010-01-20 Thread Tushar Gandhi
url has changed to delete action. Can anyone help me out to solve this problem? Thanks, Tushar -- 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

[Rails] Authlogic giving problem

2010-01-05 Thread Tushar
tell me that How should I tackle this problem? Thanks, Tushar -- 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.com. To unsubscribe from this group, send email

[Rails] Draw the multiple points on same label

2009-12-28 Thread Tushar Gandhi
, :disposition = 'inline', :type = 'image/png', :filename = arbitaryfilename.png) My problem is I have multiple values for single x-axis label. How should I do that? Can anyone help me out? Thanks, Tushar -- Posted via http://www.ruby-forum.com/. -- You received this message because you

[Rails] Migration from the Restful Authentication to Authlogic

2009-12-23 Thread Tushar Gandhi
not valid Can anyone tell me how should I fix this? It is very urgent. Thanks, Tushar Gandhi. -- 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

[Rails] Showing graphs on browser with gruff lib.

2009-12-23 Thread Tushar Gandhi
= arbitaryfilename.png) By using this it just shows that graph. I want to show the 5 graphs a a time. Like:- as objects I am going to create an object of the grohpa created and on vie I am going to iterate that and show it one by one. Can anyone tell me how should Iacehive this? Thanks, Tushar

[Rails] Running different script files from one script file.

2009-11-11 Thread Tushar Gandhi
in ror? Thanks, Tushar -- 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.com

[Rails] How to do printing in ROR?

2009-11-01 Thread Tushar Gandhi
Hi, I want to do printing in ROR? How should I do that? Is there any API's are present? Any help appreciated? Thanks, Tushar Gandhi -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[Rails] Email configuration in ROR.

2009-11-01 Thread Tushar Gandhi
Hi, I am using rails 2.2. I want to send out an email through my application. Can anyone tell me How should I configure the email sever or what are settings required for this? Any help appreciated. Thanks, Tushar Gandhi -- Posted via http://www.ruby-forum.com

[Rails] Re: How to do printing in ROR?

2009-11-01 Thread Tushar Gandhi
Conrad Taylor wrote: On Sun, Nov 1, 2009 at 10:07 PM, Tushar Gandhi rails-mailing-l...@andreas-s.net wrote: Hi, I want to do printing in ROR? How should I do that? Is there any API's are present? Any help appreciated? Thanks, Tushar Gandhi Please explain what you mean by printing

[Rails] Adding record in database table

2009-09-29 Thread Tushar Gandhi
Hi, I have a question that Is it possible to add record into the database table without adding the model for that? E.g. I have a table customers. And I haven't created a model for that. Can I add a record into that table bu doing cust=Custome.new cust.save Any help appreciated. Thanks, Tushar

[Rails] Retireving record for will_paginate

2009-06-09 Thread Tushar Gandhi
it is retrieving all records satisfying the where condition. I don't want like that. It should fetch only three records from the database. How should I do that? Any help will be appreciated. Thanks, Tushar. -- Posted via http://www.ruby-forum.com

[Rails] Re: Retireving record for will_paginate

2009-06-09 Thread Tushar Gandhi
Hi Sandip, I think it will not solve my problem. It will again find all record and do paginate onto it. I don't think so it will add any limit on the retrieval of records depending on the page. Any ways thanks for your quick reply. Thanks, Tushar Sandip Ransing wrote: Hi Tushar, not very

[Rails] Good pagination option?

2009-06-09 Thread Tushar Gandhi
Hi, I want to do pagination in Rails 2.2. I have a confusion which pagination should I use? Will_paginate or Paginator.new Also I want to retrieve only those number of records which I have specified in records per page. Can anyone please help me out for this? Thanks, Tushar -- Posted via http

[Rails] Re: Retireving record for will_paginate

2009-06-09 Thread Tushar Gandhi
Thanks Frederick Your solution is what I am looking for. Thanks, Tushar Frederick Cheung wrote: On Jun 9, 11:12�am, Tushar Gandhi rails-mailing-l...@andreas-s.net wrote: Hi Sandip, I think it will not solve my problem. It will again find all record and do paginate onto it. I don't think so

[Rails] Writing an imgae tag in to_xml

2009-04-28 Thread Tushar Gandhi
,:only=[:id,:name,:city],:root=customer) end end end I want to add an image tag into this xml data, so that image will be displayed on the pdf. I have customer_image field in customers table. Can anyone help me out for this? Thanks, Tushar -- Posted via http://www.ruby-forum.com

[Rails] ruby jasper report

2009-04-27 Thread Tushar Gandhi
) at java.io.ObjectInputStream.readStreamHeader(Unknown Source) at java.io.ObjectInputStream.init(Unknown Source) at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:84) ... 3 more Is there anyone faced this issue before? Any help is appreciated. Thanks, Tushar -- Posted via http

[Rails] map.resources problem

2009-04-14 Thread Tushar Gandhi
show method. I already added select_photo method in my account controller. Anyone can help urgent. I stuck due to this. Also, I am very curious about this issue. Anyone can explain why it has happened? Please give me solution for the same. Thanks, Tushar -- Posted via http://www.ruby-forum.com

[Rails] Error ActionController::InvalidAuthenticityToken

2009-04-13 Thread Tushar Gandhi
Thanks, Tushar -- 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.com To unsubscribe

[Rails] problem in understanding respond_to in rails 2.0 and above

2009-04-08 Thread Tushar Gandhi
|format| format.html format.js format.xml { render :xml = @people.to_xml } end Thanks, Tushar -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails

  1   2   >