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, se
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 un
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 unsubscrib
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 u
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
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
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
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
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 t
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
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 fr
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(:us
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
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
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_
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 t
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 nu
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
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
--
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 em
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
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/.
--~--~-~--~~---
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
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 t
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 wa
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,
b
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 use
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 re
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
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 ema
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 "
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
: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@google
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
ha
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" gro
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@
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/.
--~--~--
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
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@goo
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 fro
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
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
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:
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 be
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 subscrib
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 Gro
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/.
--~--~-~--~~~---
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 recei
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 rubyonrai
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
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@google
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 emai
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
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
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
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,
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
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 unsubscrib
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" g
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
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 Goo
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/attachme
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/.
--~--~-~--~~~---~
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(:c
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:/
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
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
&
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.
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 pr
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 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, :
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.
>>
&g
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
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 proc
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 probl
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
> 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 rubyon
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 => {:
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 "Rub
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 emai
[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 t
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.
>
> Indi
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 "
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 G
88 matches
Mail list logo