[Rails] Re: progress bar

2013-12-12 Thread Dharmdip Rathod
This should solve all problem !

http://blueimp.github.io/jQuery-File-Upload/

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/bcbbeb8a39fec652a458e67b4770951f%40ruby-forum.com.
For more options, visit https://groups.google.com/groups/opt_out.


[Rails] Facing probme with image upload rails 2.3.4, ruby 1.9.2 with papaerclip

2012-03-30 Thread Dharmdip Rathod
I been working on image upload since long and every time working fine,

Now since i deployed application on server,i am facing strange problem
while image upload.

When i am trying upload image it's gives error like,

NameError (undefined method path' for
classActionController::UploadedStringIO'): :10:in synchronize' passenger
(3.0.9)
lib/phusion_passenger/rack/request_handler.rb:96:inprocess_request'
passenger (3.0.9)
lib/phusion_passenger/abstract_request_handler.rb:513:in
accept_and_process_next_request' passenger (3.0.9)
lib/phusion_passenger/abstract_request_handler.rb:274:inmain_loop'
passenger (3.0.9)
lib/phusion_passenger/classic_rails/application_spawner.rb:321:in
start_request_handler' passenger (3.0.9)
lib/phusion_passenger/classic_rails/application_spawner.rb:275:inblock
in handle_spawn_application' passenger (3.0.9)
lib/phusion_passenger/utils.rb:479:in safe_fork' passenger (3.0.9)
lib/phusion_passenger/classic_rails/application_spawner.rb:270:inhandle_spawn_application'
passenger (3.0.9) lib/phusion_passenger/abstract_server.rb:357:in
server_main_loop' passenger (3.0.9)
lib/phusion_passenger/abstract_server.rb:206:instart_synchronously'
passenger (3.0.9) lib/phusion_passenger/abstract_server.rb:180:in start'
passenger (3.0.9)
lib/phusion_passenger/classic_rails/application_spawner.rb:149:instart'
passenger (3.0.9) lib/phusion_passenger/spawn_manager.rb:219:in block (2
levels) in spawn_rails_application' passenger (3.0.9)
lib/phusion_passenger/abstract_server_collection.rb:132:inlookup_or_add'
passenger (3.0.9) lib/phusion_passenger/spawn_manager.rb:214:in block in
spawn_rails_application' passenger (3.0.9)
lib/phusion_passenger/abstract_server_collection.rb:82:inblock in
synchronize' :10:in synchronize' passenger (3.0.9)
lib/phusion_passenger/abstract_server_collection.rb:79:insynchronize'
passenger (3.0.9) lib/phusion_passenger/spawn_manager.rb:213:in
spawn_rails_application' passenger (3.0.9)
lib/phusion_passenger/spawn_manager.rb:132:inspawn_application'
passenger (3.0.9) lib/phusion_passenger/spawn_manager.rb:275:in
handle_spawn_application' passenger (3.0.9)
lib/phusion_passenger/abstract_server.rb:357:inserver_main_loop'
passenger (3.0.9) lib/phusion_passenger/abstract_server.rb:206:in
start_synchronously' passenger (3.0.9)
helper-scripts/passenger-spawn-server:99:in'

(500 Internal Server Error)

but when i am trying second time it working very fine. Any idea ?

-- 
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 to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.



[Rails] Database connection to remote machine

2012-03-22 Thread Dharmdip Rathod
HiAll,

Here is strange problem.

Application is on cloud server. Database server is on another instance
and application hosted on different instance.

databse server ip : xxx.xxx.xxx.xxx
application server ip : yyy.yyy.yyy.yyy

development:
  adapter: mysql
  database: database_name
  username: 
  password: 
  host: xxx.xxx.xxx.xxx

This is my database.yml configuration for development environment.

Now when i am  trying to connect through my application it's using
application server IP yyy.yyy.yyy.yyy instead of remote databse IP
xxx.xxx.xxx.xxx.

Please suggest.

-- 
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 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.



[Rails] Re: Database connection to remote machine

2012-03-21 Thread Dharmdip Rathod
Overcome issue by setting Mysql privileges , thanks for all support.

-- 
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 to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.



[Rails] Database connection to remote machine

2012-03-20 Thread Dharmdip Rathod
HiAll,

Here is strange problem.

Application is on cloud server. Database server is on another instance
and application hosted on different instance.

databse server ip : 170.2.14.131
application server ip : 170.2.14.137

development:
  adapter: mysql
  database: database_name
  username: 
  password: 
  host: 170.2.14.131

This is my database.yml configuration for development environment.

Now when i am  trying to connect through my application it's using
application server IP instead of remote databse IP.

Please suggest.

-- 
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 to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.



[Rails] Re: Could not read chunk size?

2012-02-21 Thread Dharmdip Rathod
Hi Jeff,

I am facing same issue, do you have any solution ?

-- 
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 to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.



[Rails] Re: rails validates format with

2012-02-20 Thread Dharmdip Rathod
Hi Venkat,

Can you share exact code what have you written in model ?

-- 
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 to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.



[Rails] Re: What's calling update action?

2012-02-20 Thread Dharmdip Rathod
Hi soichi,
Please set proper routes may solve your problem.

-- 
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 to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.



[Rails] Re: Rails hosting

2012-02-20 Thread Dharmdip Rathod
lionel first-developer wrote in post #1047736:
> Hi everybody,
>
> I'm starting a new 3.2 project and i need to know the best hosting
> offers
>
> THanks for your help

https://www.speedyrails.com/

-- 
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 to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.



[Rails] Re: Export data to PDF

2012-02-20 Thread Dharmdip Rathod
Nitin Mathur wrote in post #1047547:
> Hi, I need to export data to a PDF file with proper CSS as displayed in
> HTML. Could you please tell me what is the best and proper way to do
> this.
>
> Thanks,
> Nitin Mathur.

Go with prawn gem.

-- 
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 to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.



[Rails] Re: install is hanging up

2012-02-20 Thread Dharmdip Rathod
Jeff Kyzer wrote in post #1047750:
> Hello
>
> I am trying to load ruby on rails on my windows computer, and I ran
> across railsinstaller.  I like the way it is set up, and the video
> instructions are great, but...
>
> Everything is working great up until the 1:54 min point in the video.
> In the video, a Windows security alert pop-up appears.  "Window
> firewall has blocked some features of this program", is what the alert
> is about. I am not getting that pop-up.  Instead the program just sits
> there.  the last line that I see is the WEBrick:HTTServer#start...
>
> I am using window 7, and my pop-up blocker is off.  I get these types
> of pop-up alerts for other things like loading software.  My uac is
> set to default.
>
> Someone please help me get this straightened out.
>
> Thank you for your help
> Jeff

Hi Jeff,

If you have skype, that may cause issue.

-- 
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 to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.



[Rails] Re: could not get 3xx (550)

2012-01-09 Thread Dharmdip Rathod
Matt Jones wrote in post #1039979:
> On Jan 7, 7:52am, Dharmdip Rathod  wrote:
>>  task :generate_test_users => :environment do
>> Please suggest.
>>
>> Attachments:http://www.ruby-forum.com/attachment/6889/Screenshot.png
>
> It's blowing up in an SMTP transfer - my guess is that whatever email
> server you've set up for ActionMailer is rate-limiting at 1000 emails.
>
> If you're just trying to set up some dummy user accounts, you may want
> to set ActionMailer::Base.delivery_method = :test at the beginning of
> the task.
>
> --Matt Jones

Hey Matt,

You are correct.I had just set in rake task and things get working.

Thanks.

-- 
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 to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.



[Rails] Re: could not get 3xx (550)

2012-01-09 Thread Dharmdip Rathod
Colin Law wrote in post #1039845:
> On 7 January 2012 12:52, Dharmdip Rathod  wrote:
>> task :generate_test_users => :environment do
>> Please suggest.
>>
>> Attachments:
>> http://www.ruby-forum.com/attachment/6889/Screenshot.png
>
> It appears to be attempting to send an email for each user created,
> did you intend that?  The problem is something to do with that.
>
> Which version of ruby and which version of rails are you using?
>
> Colin

Thanks for reply Colin.

Ruby 1.9.2 and Rails 3.1.0 .

-- 
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 to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.



[Rails] Re: how to make the whenever gem to run a cron job

2012-01-07 Thread Dharmdip Rathod
whenever --update-crontab -set='environment=development'

-- 
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 to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.



[Rails] could not get 3xx (550)

2012-01-07 Thread Dharmdip Rathod
Getting strange error while performing rake task.

Automated creating users for testing.

It's creating users till number 999, getting error while creating user
1000.

Rake Task :

desc "Generate test users"
  task :generate_test_users => :environment do
for i in (1..5000)
  User.create(:username=>"user#{i}", :email=>"user#{i}@user.com",
:password=>"123456", :confirm_password=>"123456", :state=>"Active",
:first_name=>"user_first#{i}", :last_name=>"user_last#{i}",
:activation_state=>"Active", :is_admin=>false, :product_source=>"Both")
  puts "user#{i}"
end

  end

Please suggest.

Attachments:
http://www.ruby-forum.com/attachment/6889/Screenshot.png


-- 
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 to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.



[Rails] Re: Re: ActiveRecord relation validation in Rails 3.1

2011-12-23 Thread Dharmdip Rathod
Dharmdip Rathod wrote in post #1037996:
> I had already gone through. so my reply was quick.
>
> :)

By the way,

Thanks All for quick reply and support.

-- 
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 to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.



[Rails] Re: Re: ActiveRecord relation validation in Rails 3.1

2011-12-23 Thread Dharmdip Rathod
I had already gone through. so my reply was quick.

:)

-- 
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 to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.



[Rails] Re: ActiveRecord relation validation in Rails 3.1

2011-12-22 Thread Dharmdip Rathod
It's not working !

Gomzi Pai wrote in post #1037968:
> try :scope option in your statement
>
> eg:
>
> validates :itemcode, :uniqueness => true, :scope => :user_id
>
> read the documentation here
>
> 
http://api.rubyonrails.org/classes/ActiveRecord/Validations/ClassMethods.html#method-i-validates_uniqueness_of
>
> and section 3.10 uniqueness in
>
> http://guides.rubyonrails.org/active_record_validations_callbacks.html
>
> Gautam Pai

-- 
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 to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.



[Rails] Re: How to watch .*pdf files in browser?

2011-12-22 Thread Dharmdip Rathod
If your file in public folder you can view directly.

-- 
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 to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.



[Rails] ActiveRecord relation validation in Rails 3.1

2011-12-22 Thread Dharmdip Rathod
Hi All,

I am facing sort of problem while validating .

Two models User & Product.

class User < ActiveRecord::Base
has_many :products, :dependent => :destroy
end

class Product < ActiveRecord::Base
belongs_to :user
validates :itemcode, :uniqueness => true
end

Now case,

System has number of users who can insert product information with
itemcode
uniqueness, but we need uniqueness validation with user_id and
itemcode.System need to check join table validation for new item with
user_id and itemcode.

Please suggest.

Thanks.

-- 
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 to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.



[Rails] Re: Re: Persistance connection with database

2010-09-13 Thread Dharmdip Rathod
radhames brito wrote:
> http://railscasts.com/episodes/43-ajax-with-rjs
> 
> 
> and a more recent and proper way is this
> 
> 
> http://railscasts.com/episodes/136-jquery
> 
> On Thu, Sep 9, 2010 at 3:47 AM, Frederick Cheung 
> 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 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.



[Rails] Re: Persistance connection with database

2010-09-13 Thread Dharmdip Rathod
Frederick Cheung wrote:
> On Sep 9, 7:57�am, Dharmdip Rathod  wrote:
>> Hey , is there any easy way to check for new values in database and show
>> update value on view without refreshing page ?
> 
> You should do some reading about AJAX.
> 
> Fred

Thanks Fred
-- 
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 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.



[Rails] Re: Trying to local variable passed to a partial in a find call and getting nowhere..

2010-09-09 Thread Dharmdip Rathod
Use monthly_report["Household_zip"]
-- 
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 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.



[Rails] Persistance connection with database

2010-09-08 Thread Dharmdip Rathod
Hey , is there any easy way to check for new values in database and show
update value on view without refreshing page ?
-- 
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 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.



[Rails] Re: How to validate with validates_associated

2009-07-09 Thread Dharmdip Rathod

Ok ! this should work !

But if not go for

In your banner model !

def validate
 errors.add_to_base "Where is file!" if 
Bannerimage.find(self.id).blank?
end

Otherwise use Activerecord callbacks !

Glad to help !
-- 
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 to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: File upload?

2009-06-18 Thread Dharmdip Rathod

Hi , Ronny

 Ok , the path for file browsing is passing wrong , the path in data 
file is wrong .please debug datafile path .

-- 
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 to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: File upload?

2009-06-18 Thread Dharmdip Rathod

Hi , Ronny

For file uploading just refer this link .

http://www.tutorialspoint.com/ruby-on-rails/rails-file-uploading.htm

Thanks ,
Dharmdip
-- 
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 to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: How to open PDF file in browser ?

2009-06-18 Thread Dharmdip Rathod

Thanks Colin ,

When i put one file in public folder and after accessing thought URL 
it opens in browser now i know what happens . I have used attachment_fu 
for file uploading, and files is stored here 
(/groups_file/000/0045/test.pdf) so i need to make URL pertaining to 
this path that's way i can open file in browser i think so.


Thanks and Regards,
Dharmdip
-- 
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 to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: How to open PDF file in browser ?

2009-06-18 Thread Dharmdip Rathod

Thanks Colin ,

But when i choose this option pdf file opens in pdf viewer application , 
but it does not open in browser it opens like desktop application and 
when i try to open it with firefox , it gives following error !

  C:\DOCUME~1\hb56\LOCALS~1\Temp\1_product-2.pdf could not be opened, 
because an   unknown error occurred.
Try saving to disk first and then opening the file.

any suggestion?


Thanks ,
Dharmdip
-- 
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 to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: How to open PDF file in browser ?

2009-06-18 Thread Dharmdip Rathod

Thanks , Colin

 Basically i am passing file name in URL , that's way i am 
trying to open file in browser and i can not find more help regarding 
this topic and i have seen this functionality in 
http://www.meetup.com/SV-SBRG/files/ .It's working fine i do
not think for this they have used any extra functionality.

Thanks
Dharmdip.
-- 
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 to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: How to open PDF file in browser ?

2009-06-18 Thread Dharmdip Rathod

Thanks , for your reply same thing is happen here but when i click on 
link to open pdf file browser automatically gives download window.So , i 
can not understand how to open file in browser !
-- 
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 to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: FasterCVS and Rails

2009-06-17 Thread Dharmdip Rathod

Yes i had it , my rails version was issue .
FasterCSV was running smooth on my local but i deployed my application 
to server FasterCSV was not running so please check server operating 
system , and install gem related to OS. If your problem is not solved 
feel free to ask !
ba bye
-- 
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 to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: FasterCVS and Rails

2009-06-17 Thread Dharmdip Rathod

it can be issue with your rails version for current application.
-- 
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 to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: Link to stylesheet from HTML email?

2009-06-17 Thread Dharmdip Rathod

I appreciate  with Marnen Laibow-Koser, if the requirements concern you 
can give remote path to your images and stylesheet.
-- 
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 to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] How to open PDF file in browser ?

2009-06-17 Thread Dharmdip Rathod

Please help me ,

How to open .pdf extension file in browser ?
-- 
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 to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: Content type is not included in the list

2009-06-10 Thread Dharmdip Rathod

:content_type =>['application/pdf']
-- 
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 to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Content type is not included in the list

2009-06-09 Thread Dharmdip Rathod

Hi ,
i am uploading files using attachment_fu ,i  can upload files with
extension .txt, .xls, .doc but when i am going to upload .pdf extension
file i gives

Validation failed: Content type is not included in the list

error.

My model file code is here .

class Model< ActiveRecord::Base

  has_attachment :content_type =>['application/pdf','application
/msword','application/vnd.ms-excel','text/plain'],
:storage => :file_system,
:size => 0.kilobytes..1.kilobytes
validates_as_attachment
end


Is there any issue for attachment_fu or anything else ?
-- 
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 to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Forum integration

2009-05-29 Thread Dharmdip Rathod

Hello ,

Is there any plugin or gem for rails 1.2.* which can be integrate in
existing application.
-- 
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 to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: Custom error message

2009-04-28 Thread Dharmdip Rathod

Okay  ! Will follow instruction ,
Thanks.
-- 
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 to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Custom error message

2009-04-28 Thread Dharmdip Rathod

Hello,

How to get error page redirection when i am get rails conventional
exception .

Say like, i have error in my controller and rails will give me exception
and will render me error page but i want custom error page redirection.

Thanks.
-- 
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 to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: Contacts

2009-04-28 Thread Dharmdip Rathod

This is default RoR page ! Here application has not routed yet !

For more detail of RoR  go => http://rubyonrails.org/
-- 
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 to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Rating Plugin dilemma !

2009-04-05 Thread Dharmdip Rathod

Which rating plugin is better to use ?
-- 
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 to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: JQuery Ajax clash

2009-03-30 Thread Dharmdip Rathod

Good !
-- 
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 to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: JQuery Ajax clash

2009-03-30 Thread Dharmdip Rathod

Preethi Sivakumar wrote:
> Hi,
> 
> I'm having a search form which renders a table of search results.
> 
> The search box is doing an ajax call.
> 
> In my search results, i've JQuery scripts written for sorting and
> pagination and some other operations that i do with the table.
> 
> The issue is, I'm not able to have ajax and jquery calls in same page.
> 
> Is there any solution for this?
> 
> Your help is greatly appreciated. Thanks

jQuery.noConflict();
jQuery(document).ready(function($){

});
write this in javascript file from where you are callin function.
-- 
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 to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: How would I extract data from this hash?

2009-03-06 Thread Dharmdip Rathod

Bob Sanders wrote:
> I'm trying to convert a simple:
> 
> @teams = Team.all
> 
> into this form:
> 
>@teams_created = {1.day.ago => { :teams_created => 100 },2.day.ago => 
> {:teams_created => 200 }
> }
> 
> Know how I would do it? I'm googling for the answer but I don't what
> keywords I should use.

put your object in between array symbol

[...@teams]

or do << (push operation)
-- 
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 to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: How to fix radius of the open flash chart in ruby

2009-03-06 Thread Dharmdip Rathod

Hi , Radha

have you used open flash chart1 or open flash chart2 ?

there are different method they cover...
-- 
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 to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: Error during rake db:migrate

2009-03-06 Thread Dharmdip Rathod

install gem 'name '
=>gem install mysql or dowanload for your rails version and install 
locally from rubyforge and put it in your root directory

c://gem install -l mysql
-- 
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 to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: How can i know weather a record is saved or not?

2009-03-05 Thread Dharmdip Rathod

Sijo Kg wrote:
>  creating a new record of a model , using new() does not save it to 
> database until called save

recrod.save? will return Boolean.
-- 
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 to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: How to fix radius of the open flash chart in ruby

2009-03-03 Thread Dharmdip Rathod

Hi , Radha

please go threw this URL my you get something you want

http://pullmonkey.com/2008/7/29/open-flash-chart-ii-pie-chart
-- 
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 to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: Which one is light weight IDE for Rails

2009-02-25 Thread Dharmdip Rathod

Bosko Ivanisevic wrote:
> I'm using Emacs, emacs-starter-kit and rinary on Windows XP, Vista and
> Ubuntu, and I think it is really great.
> 
> On Feb 26, 5:17�am, Dharmdip Rathod 

Thanks.
-- 
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 to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Which one is light weight IDE for Rails

2009-02-25 Thread Dharmdip Rathod

Hello friends ,
i want favor form your side , which is the light weight IDE for rails on
Windows Xp system ? Can we have file management section (file browsing)
in SciTE ?

Thanks.

Dharmdip
-- 
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 to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: NoMethodError with custom RAILS_ENV

2009-02-21 Thread Dharmdip Rathod

On which platform r u deploying your application?
-- 
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 to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: how to change sqlite3 to mysql..??

2009-02-21 Thread Dharmdip Rathod

Download edge Instantrails .
and make rails application from command promt

rails -d mysql applicationname
you can able to work with mysql.
-- 
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 to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: routing error

2009-02-21 Thread Dharmdip Rathod

which  version of rails r u using ?
-- 
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 to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: Facing problem with Fastercsv on deployment server

2009-02-20 Thread Dharmdip Rathod

Thanks for replay , it is install there !
i have checked that.

-- 
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 to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Facing problem with Fastercsv on deployment server

2009-02-20 Thread Dharmdip Rathod

Hello , friends i am facing strange problem here.I have installed
Fatercsv(1.2.3) for report export functionality, It's working proper on
my development server.

Development server = WinXp Professional V 2002 SP2
   = Rails version 2.0.2
   = Environment development

Deployment server  = Linux platform
   = Rails version 2.0.2
   = Environment Production

I am getting error like no such file to load --Fastercsv.


Thanks.
-- 
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 to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: How can i count total days of particular month

2009-02-19 Thread Dharmdip Rathod

MaD wrote:
>>> Time.days_in_month(1,2008)
> => 31

Thanks.

-- 
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 to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] How can i count total days of particular month

2009-02-19 Thread Dharmdip Rathod

Hi , to all .

Is there any idea in rails to count totoal days of  month

eg.  2008-5-01

total days =31
-- 
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 to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Common model validation probelm

2009-02-09 Thread Dharmdip Rathod

Hello ,

I am facing strange problem here. I have model customer.rb , i am
validating following fields

  validates_presence_of :email
  validates_format_of :email, :with =>
/(^([...@\s]+)@((?:[-_a-z0-9]+\.)+[a-z]{2,})$)|(^$)/i
  validates_uniqueness_of :email
  validates_presence_of  :password,  :on => :create
  validates_length_of :password, :in => 4..20, :allow_nil => false,:on
=> :create
  validates_presence_of:password_confirmation, :if =>
:password_required?
  validates_confirmation_of :password,   :if => :password_required?
  validates_presence_of :first_name
  validates_presence_of :last_name
  validates_presence_of :address
  validates_presence_of :country_id
  validates_presence_of :state_id
  validates_presence_of :city
  validates_numericality_of :zip
  validates_presence_of :phone
  validates_presence_of :securityque_id
  validates_presence_of :answer
  validates_acceptance_of  :policy

after submitting form successfully , i am giving update facility for
updatepassword, and edit profile when i am updating profile it ask for
password field and when i am updating password it ask for nothing .
is there any way 
thank in advance.
-- 
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 to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: upload multiple images with attachment_fu

2009-02-09 Thread Dharmdip Rathod

Sarika Patil wrote:
> hi,
> 
> You may use RMagick for this since there is method Image_list which 
> helps to create an array of images and store them into single image
> 
> 
> Dharmdip Rathod wrote:
>> i am getting array of images but when i trying to save it,
>> it gives error
>> 
>>NoMethodError (undefined method `strip' for
>>#)
>> 
>> 
>> help ?

Thank you .
-- 
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 to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: Rcov: how to write test cases

2009-02-07 Thread Dharmdip Rathod

will call u
-- 
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 to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: Rcov: how to write test cases

2009-02-07 Thread Dharmdip Rathod

implementation of
http://morshed-alam.blogspot.com/2008/09/implementation-of-cruisecontrolrb-and.html
-- 
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 to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: Rcov: how to write test cases

2009-02-06 Thread Dharmdip Rathod

Brijesh Shah wrote:
> Hi I am using rcov to generate code coverage. But I don't know how to
> write cases  for that...
> 
> I have installed rcov gem and and execute rcov test/*.rb command. It
> shows me some code coverage in files.
> 
> Can anyone  help me by giving example that how to write test cases and
> where to write...
> 
> Thanks in advance...

http://thelucid.com/2007/08/24/using-rcov-to-measure-the-test-coverage-of-rails-plugins/

http://www.ultrasaurus.com/sarahblog/2008/12/rails-2-day-4-rcov-and-more-behavior-driven-development/
-- 
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 to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] upload multiple images with attachment_fu

2009-02-05 Thread Dharmdip Rathod

i am getting array of images but when i trying to save it,
it gives error

   NoMethodError (undefined method `strip' for
   #)


help ?
-- 
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 to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] undefined method `strip' for #

2009-02-05 Thread Dharmdip Rathod

i am getting array of uploaded images when i am trying to dump in
database i am getting error

NoMethodError (undefined method `strip' for
#):
/vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu.rb:367:in
`sanitize_filename'

/vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu/backends/file_system_backend.rb:48:in
`filename='


 help ?
-- 
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 to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Is it possible to have file manage box in SciTE editor

2009-01-31 Thread Dharmdip Rathod

Is it possible to have file manage box in SciTE editor,
I have search but i am not getting proper idea.
if any one have idea please share ..

Thanks.
-- 
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 to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] X_send_file download 1byte file instade of original size

2009-01-28 Thread Dharmdip Rathod

i m using x_send_file pluggins and download file then only 1byte file is
downloaded.

in Controller
x_send_file("#{RAILS_ROOT}/public#{params[:file]}")

if you have idea for this problem so give me a solution
-- 
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 to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: Apply style in collection_select ?????

2009-01-27 Thread Dharmdip Rathod

Thanks a lot ,
but it is not working here actually your suggested code is breaking my 
java script and style problem is still there , but never mind . Actually 
here this issue is looking some critical because i can not see html 
generated code in source when i write this

<%= collection_select(:customer, :country_id,
@countries, :id, :country, {:style => 'width:100px;', :onchange =>
"updateState('');", :id => 'country_id'}) %>

help...
-- 
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 to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Apply style in collection_select ?????

2009-01-27 Thread Dharmdip Rathod

Hi to all,
i have this snip i want to apply style to this combo but there is no
effect
help...

<%= collection_select(:customer,:country_id, @countries,:id, :country,
html_options={ "style" => "width:110px" },:onchange =>
'updateState('');',:id =>'country_id' )%>

Thanks,
-- 
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 to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] How to use ziya plugin

2009-01-07 Thread Dharmdip Rathod

I have gone threw many reference to use Ziya plugin but i failed does
any one know proper way to user Ziya plugin ?
-- 
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 to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: Problem with downloading Ziya plugin

2008-12-31 Thread Dharmdip Rathod

Dharmdip Rathod wrote:
> Ryan Bigg wrote:
>> You're going to have to download from github if nothing else works. No
>> reason not to. Just download it and extract it into vendor/plugins
>> -
>> Ryan Bigg
>> Freelancer
>> http://frozenplague.net
> I was afraid for version conflict.
> Thanks.

i am getting error like


Showing blee/index.rhtml where line #1 raised:

undefined method `gen_chart' for #

Extracted source (around line #1):

1: <%=gen_chart( "blee", url_for( :controller => 'blee', :action => 
'fred' ), '#ff', 400, 300 )%>


might this method is not avail in this plug in.
Help !
-- 
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 to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: Problem with downloading Ziya plugin

2008-12-31 Thread Dharmdip Rathod

Ryan Bigg wrote:
> You're going to have to download from github if nothing else works. No
> reason not to. Just download it and extract it into vendor/plugins
> -
> Ryan Bigg
> Freelancer
> http://frozenplague.net
I was afraid for version conflict.
Thanks.
-- 
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 to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Problem with downloading Ziya plugin

2008-12-30 Thread Dharmdip Rathod

hello ,
i am trying to download Ziya plugin from

ruby script/plugin install
svn://rubyforge.org/var/svn/liquidrail/plugins/ziya/trunk

i have tried other url's but not able to download.Is there any
alternative ? I do not want to download directly from GITHUB.com i want
to download from command prompt.

Help !
-- 
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 to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: Problem with destroying multiple records........

2008-12-04 Thread Dharmdip Rathod


Thx,
-- 
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 to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: Problem with destroying multiple records........

2008-12-04 Thread Dharmdip Rathod

Frederick Cheung wrote:
> On Dec 4, 4:00�am, Dharmdip Rathod <[EMAIL PROTECTED]>
> wrote:
>> > primary key) so what were you expecting?
>>
>> > Fred
>>
>> I want all records base on query which i have written in
>> people=People.find(:all, :conditions=>["id=?",params[:id]])
>> i am getting only one record not all records ...
> 
> There is only ever one such record because the primary key is unique
> (by definition).
> 
> Fred

k
-- 
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 to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: Problem with destroying multiple records........

2008-12-03 Thread Dharmdip Rathod

Frederick Cheung wrote:
> On Dec 3, 1:20�pm, Dharmdip Rathod <[EMAIL PROTECTED]>
> wrote:
>> to delete all records based this method.
>>
>> i tried with people=People.find(:all, :conditions=>["id=?",params[:id]])
>> but result is same.
>>
> This doesn't really make sense to me. There is only one record for a
> given value of the id column (or rather rails assumes that id is your
> primary key) so what were you expecting?
> 
> Fred

I want all records base on query which i have written in 
people=People.find(:all, :conditions=>["id=?",params[:id]])
i am getting only one record not all records ...
-- 
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 to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Problem with destroying multiple records........

2008-12-03 Thread Dharmdip Rathod

Hi ,

i am facing problem while i am writing code
e.g.

 People.find_by_id(params[:id])
 comment.find_by_id(params[:id])

when this execute it will delete only one record from the database which
it get first. It will keep other records same.Is there any alternative
to delete all records based this method.

i tried with people=People.find(:all, :conditions=>["id=?",params[:id]])
but result is same.

please help.
-- 
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 to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: Disable validation on edit

2008-10-27 Thread Dharmdip Rathod

void wrote:
> or you can call:
> 
> object.save_without_validations
> 
> or
> object.save_with_validations
> 
> although i'd not recommend bypassing your validations.

thanks for your reply. I agree that bypassing validation is not 
advisable but in this case i dont want to do as its a manual process..

Thanks a lot
-- 
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 to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: Disable validation on edit

2008-10-27 Thread Dharmdip Rathod

Hi

Thanks for your reply ..My actual problem is that i m calling .save 
function from 2 different methods but in one method i want to validate 
and from the other i dont want to. Both uses the same model and the 
method is same. But the controller is different.

Hope you understood my exact problem

Thanks
-- 
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 to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Disable validation on edit

2008-10-27 Thread Dharmdip Rathod

Hi all

I want to disable validation when i m calling the edit method. The
reason y i want to do this is that i m allowing only certain fields to
be edited. I dont want to pass hidden values.

Is there any method to disable validation when i call a certain method?

Thanks
-- 
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 to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: Couldn't find Admin with ID=list

2008-10-14 Thread Dharmdip Rathod

> same problem here can u suggest, how did u solve ?
-- 
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 to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: Couldn't find Admin with ID=list

2008-10-14 Thread Dharmdip Rathod

david wrote:
> You are using REST routes.
> Look at config/routes.rb and you will see something like that:
> 
> controller_name.resources
> 
> Look at this: http://nubyonrails.com/articles/peepcode-rest-basics
> 
> If you want action list you must put:
> 
> controller_name.resources, :member => {:list => :get}
> 
> On 22 ago, 08:58, "shruti m.upadhyay" <[EMAIL PROTECTED]>

same problem here can u suggest, how did u solved ?
-- 
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 to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: how can i call multiple action in one form

2008-10-07 Thread Dharmdip Rathod

Dharmdip Rathod wrote:
> hello
> I am trying to call multiple form action is it possible ?

problem solved !
-- 
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 to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] how can i call multiple action in one form

2008-10-07 Thread Dharmdip Rathod

hello
I am trying to call multiple form action is it possible ?
-- 
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 to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: How to export data in pdf and excel format ?

2008-10-01 Thread Dharmdip Rathod

[EMAIL PROTECTED] wrote:
> On Aug 3, 3:50�am, "Greg Donald" <[EMAIL PROTECTED]> wrote:
>>
> I'm sure no one ever thought of that.
 i had it !

-- 
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 to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: How to use frame in RoR

2008-09-17 Thread Dharmdip Rathod

Ar Chron wrote:
> Dharmdip Rathod wrote:
>> thanks ! i want specific content for each n every frame !
>> is it possible ? to get dynamic content for each n every content ?
> 
> Surely.  content_for just routes the output to the appropriate named 
> div.
> 
> Individual views can use or ignore divs as they see fit, depending on 
> what they are to render.
> 
> The app template is just that. If your template includes empty 
> placeholders for all the different content snippets, you just use the 
> suggested content_for construct and send the rendered data to the 
> appropriate div.

thx ! chron
-- 
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 to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: How to use frame in RoR

2008-09-17 Thread Dharmdip Rathod

thanks ! i want specific content for each n every frame !
is it possible ? to get dynamic content for each n every content ?
-- 
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 to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] How to use frame in RoR

2008-09-17 Thread Dharmdip Rathod

hello i want to use frame in RoR ..
how to create frame in RoR?

Attachments:
http://www.ruby-forum.com/attachment/2701/frame_example.JPG

-- 
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 to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---