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,
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'):
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:
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
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:
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
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,
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
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
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
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
Colin Law wrote in post #1039845:
On 7 January 2012 12:52, Dharmdip Rathod li...@ruby-forum.com 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
Matt Jones wrote in post #1039979:
On Jan 7, 7:52am, Dharmdip Rathod li...@ruby-forum.com 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
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)
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
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
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
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
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
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
Frederick Cheung wrote:
On Sep 9, 7:57�am, Dharmdip Rathod li...@ruby-forum.com 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
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
frederick.che...@gmail.com
Thanks !
--
Posted via http://www.ruby-forum.com/.
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
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
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/.
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
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,
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
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
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
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
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
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
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
: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
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
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
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
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/.
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
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
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
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
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:/rails root/gem install -l mysql
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this
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:
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.
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
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
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
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 rails-mailing-l...@andreas-s.net
Thanks.
--
Posted via http://www.ruby-forum.com
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
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
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
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
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
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
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
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
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
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
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
i am getting array of uploaded images when i am trying to dump in
database i am getting error
strongNoMethodError (undefined method `strip' for
#ActionController::UploadedStringIO:0x458afe4):
/vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu.rb:367:in
`sanitize_filename'
i am getting array of images but when i trying to save it,
it gives error
NoMethodError (undefined method `strip' for
#ActionController::UploadedStringIO:0x458afe4)
help ?
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this
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
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/.
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
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
%=
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
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/.
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
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
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
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
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
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
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..
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 =
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
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
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
[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
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
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
83 matches
Mail list logo