[Rails] Re: rvm and gem confusion

2010-11-30 Thread Paul Bergstrom
tundrax wrote in post #964969: Maybe your RVM is not running as a function that is causing gem env confusion. Check out the manual, Post Install section. Run type rvm | head -n1 and check if the return is rvm is a function. And if it's not, follow the instructions given in the manual. Hope

[Rails] Re: rvm and gem confusion

2010-11-30 Thread Paul Bergstrom
Marnen Laibow-Koser wrote in post #964957: Your problem is with RVM, not with Ruby or Rails. And what is yours? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send

[Rails] Re: Help needed!!!

2010-11-30 Thread gezope
I think don't be afraid, just try it out! On your cpanel you can delete anything if you find it unuseful. You can also make a server on your machine, you will reach it as localhost. Also you can ask your hosting's support. After you tried to make it work, and something has error message - it's

[Rails] Re: Installing a gem in an application

2010-11-30 Thread gezope
Hello, you can do these kind of things from console. Do you have SSH access for your hosting? What kind of hosting is it? First install the Haml gam: gem install haml Second write it to your Gemfile in your app's root folder: gem 'haml' Then try 'bundle install' in terminal. If you have an

[Rails] Re: Dependency Problem

2010-11-30 Thread gezope
Hello, first try RVM, it can solve this kind of problems easily. Plase write here your ruby, gem, rails -v versions, and output of gem list command. What OS you use? You can check simply 'gem' command gives you how you can use this command, and also 'gem -h' or 'gem --help' If you have multiple

[Rails] [Rails problem]create IP address range?

2010-11-30 Thread gary
Is there any way to create IP address range? like 192.168.0.1/24. It's too annoy to create a data each time. I find a Rubygems' ipaddress. http://rubygems.org/gems/ipaddress. I would like to take this to created IP range. in new.heml.erb %= f.lable :iprange % %= f.text.field :iprange % I don't

Re: [Rails] Error creating model object using accepts_nested_attributes_for

2010-11-30 Thread Colin Law
On 28 November 2010 22:08, skt stibre...@gmail.com wrote: Folks, I am on Rails 2.3.8. I have models declared as below class GradeSection ActiveRecord::Base  has_many  :class_calendars  more stuff end class ClassCalendar ActiveRecord::Base  has_many :uploaded_attachments, :class_name =

[Rails] Re: Re: wkhtmltopdf and PDFkit

2010-11-30 Thread Conor Nugent
Hi Nick, I think that you are right and the problem lies with your installation of wkhtmltopdf given your command line problems. Maybe try uninstalling wkhtmltopdf apt-get remove wkhtmltopdf and then installing via PDFKit pdfkit --install-wkhtmltopdf or manually Sorry, I know this isn't

Re: [Rails] [Rails problem]create IP address range?

2010-11-30 Thread Colin Law
On 30 November 2010 05:27, gary yangwein...@gmail.com wrote: Is there any way to create IP address range? like 192.168.0.1/24. It's too annoy to create a data each time. I find a Rubygems' ipaddress. http://rubygems.org/gems/ipaddress. I would like to take this to created IP range. in

[Rails] Re: incompatible character encodings: ASCII-8BIT and UTF-8

2010-11-30 Thread Gjermund Lunder
Anyone know how to add this patch?: 0001-enforced-utf-8-encoding-for-ruby-19-and-mysql-text.patch (https://rails.lighthouseapp.com/projects/8994/tickets/4683-ascii-8bit-and-utf-8-in-hell) I've never applied such a pacth. Thanks Gjermund -- Posted via http://www.ruby-forum.com/. -- You

[Rails] Re: Heroku error msg:App Crashed

2010-11-30 Thread Emanuel
finally i fixed it..i had to make a single line as comment that is gem 'sqlite3-ruby', :require = 'sqlite3' in my gemfile ...any way thanx for ur support.. On Nov 29, 10:05 pm, Marnen Laibow-Koser li...@ruby-forum.com wrote: Emanuel wrote in post #964744:

[Rails] Re: Error installing rails 3, get error: mail requires i18n (~ 0.4.1, runtime)

2010-11-30 Thread Gogov
Don't know if this is useful for you but just fixed that yesterday. I was upgrading from rails 3.0.0 to 3.0.3 and starting rails server complained about needing i18n 0.4.1 but 0.5.0 being active so I reinstalled all rubies with rvm, removed all cached gems, reinstalled rails and removed i18n 0.5.0

[Rails] Re: please explain me why nil?

2010-11-30 Thread Yan Bernatsky
ps. rails 3.0.3 -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to

Re: [Rails] please explain me why nil?

2010-11-30 Thread Colin Law
On 30 November 2010 10:14, Yan Bernatsky li...@ruby-forum.com wrote: I have 3 models Skill, User, UserSkill User has_many skills :through = :user_skills User has_many :user_skills UserSkill.new # = { :id = nil, :user_id = nil, :skill_id = nil } us = UserSkill.create(:user_id = 1, :skill_id

[Rails] Re: please explain me why nil?

2010-11-30 Thread Yan Bernatsky
Colin Law wrote in post #965064: On 30 November 2010 10:14, Yan Bernatsky li...@ruby-forum.com wrote: Why id is nil? In the database record was created and id is not null... The id is not allocated until the record is saved to the database. Colin But other models returns the id on

[Rails] Update div with Prototype

2010-11-30 Thread Alberto B.
I want to update a div on my page with prototype (new Ajax.Updater ('my_div', 'page.html')). What I do is: . . % = csrf_meta_tag% % = javascript_include_tag: defaults% . . % = yield% . . % = link_to Link, page_path,: remote = true% Without the :remote = true the div is updated but it does

[Rails] Re: please explain me why nil?

2010-11-30 Thread Ganesh Kathare
UserSkill.new # = { :id = nil, :user_id = nil, :skill_id = nil } us = UserSkill.create(:user_id = 1, :skill_id = 1) # = { :id = nil, :user_id = 1, :skill_id = 1 } Why id is nil? In the database record was created and id is not null... Hi, Friend when you create any new object usign

[Rails] Re: please explain me why nil?

2010-11-30 Thread Ganesh Kathare
But other models returns the id on .create() yes.. in this case method(.create()) first creates record in db table and then it provides you hash with table's all attributes and values which are there in db records. -Ganesh K -- Posted via http://www.ruby-forum.com/. -- You received this

[Rails] Re: please explain me why nil?

2010-11-30 Thread Yan Bernatsky
Model.create(:attr = value) returns the #Model id: 1, attr: Value if model is valid and no database's errors found. It is normal, but my UserSkill returns #UserSkill id: nil, etc.. on create method. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are

[Rails] Re: invalid date

2010-11-30 Thread Frederick Cheung
On Nov 27, 3:30 am, Tiesto esau...@gmail.com wrote: Hi!! Somebody knows why throws me an exception?? Sounds to me like the soap response ruby is trying to parse for you contains an invalid date (eg Februrary 31st). Have you tried looking at the soap response before ruby parses it? Fred --

[Rails] Re: Error creating model object using accepts_nested_attributes_for

2010-11-30 Thread Frederick Cheung
On Nov 28, 10:08 pm, skt stibre...@gmail.com wrote: In my create function in GradeSection controller I get data posted as such Processing GradeSectionController#create (for 127.0.0.1 at 2010-11-27 22:13:46) [POST]   Parameters:

[Rails] q: remote_form_for get submit

2010-11-30 Thread tom
hi, im trying to build a ajaxified remote_form_for. this looks like that: % remote_form_for :search, :url = { :action = index} , :method = get , :loading = $('divSearchWiP').show();, :loaded = $('divSearchWiP').hide(); do % ... %= submit_tag Search % the form above sits in the index view. the

Re: [Rails] Re: Re: wkhtmltopdf and PDFkit

2010-11-30 Thread David Kahn
On Tue, Nov 30, 2010 at 3:25 AM, Conor Nugent li...@ruby-forum.com wrote: Hi Nick, I think that you are right and the problem lies with your installation of wkhtmltopdf given your command line problems. Maybe try uninstalling wkhtmltopdf apt-get remove wkhtmltopdf and then installing via

[Rails] Re: Dependency Problem

2010-11-30 Thread pepe
Do you remember the version of the gem(s) you had before you updated them? There is a way to install specific gem versions by adding the version at the end of the install command. Something like this: gem install rails -v=2.3.5 # This would install Rails 2.3.5 You can also check the dependencies

Re: [Rails] Dependency Problem

2010-11-30 Thread Andre Fonseca
Anyone knows or worked with DragonFly gems to make photo upload? I have some issue with this: DragonFly doesn't cleanup yours tempfiles... All the time that i get some file (I use fetch method from app), DragonFly create an new file in my tmp dir. Thanks Andre -- You received this message

[Rails] Re: iFrame and routes

2010-11-30 Thread Albert C.
Hi, I'm looking for answers for the same problem and the solution therfore is? = maybe read the file in the server and create it as a tmp file in public/ ¿Is this a correct solution? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the

Re: [Rails] Re: find duplicates in each array rails

2010-11-30 Thread PalaniKannan K
Dear Michael, Thanks lot for your answer. % @sp_references.each do |sp_ref| % %= sp_ref.all_references.map(:reference).uniq.delete_if{|ref| ref =~ /emend$/i}.join(br/) % % end % I need the results have to print without duplicates. This gives the results with duplicates. * %

Re: [Rails] Re: iFrame and routes

2010-11-30 Thread Colin Law
On 30 November 2010 14:09, Albert C. li...@ruby-forum.com wrote: Hi, I'm looking for answers for the same problem and the solution therfore is? What problem? Colin = maybe read the file in the server and create it as a tmp file in public/ ¿Is this a correct solution? -- Posted via

Re: [Rails] Re: find duplicates in each array rails

2010-11-30 Thread Michael Pavling
On 30 November 2010 14:10, PalaniKannan K kpalanikan...@gmail.com wrote: I need the results have to print without duplicates. This gives the results with duplicates. snip and snip presents same results with duplicates. Please about your suggestion. I'm having trouble seeing where you're even

[Rails] Rails 2.3.8 Action Caching without layout (ajax and non-ajax requests)

2010-11-30 Thread nico
Hi there, I'm using Action Caching with Rails 2.3.8 on Heroku with Memcached (via Dalli Gem). Without the layout parameter Action Caching works fine. However, as soon as I add layout = false I get problems: Normal non-ajax requests are cached fine, without the layout, as expected. But ajax

[Rails] Re: iFrame and routes

2010-11-30 Thread Albert C.
Ok, lets begin, I'm newest, sorry because this is a low level question: If I have this, and of course I've saved before, this file in public dir iframe src=public/6465_p_61_620_15674.pdf/iframe ¿Why doesn't work? * this is called from firmas controller and mostrar_pdf action =the iframe says,

[Rails] Re: Checking parameters

2010-11-30 Thread Kai Schlamp
Thanks for the answers. One last general question. Where do you validate your parameters fetched by params that should be passed to models? Do you check them right away in the controller and give them cleaned up to the model, or do you just provide them as they are (maybe just put them in single

Re: [Rails] Re: iFrame and routes

2010-11-30 Thread Colin Law
On 30 November 2010 14:42, Albert C. li...@ruby-forum.com wrote: Ok, lets begin, I'm newest, sorry because this is a low level question: If I have this, and of course I've saved before, this file in public dir iframe src=public/6465_p_61_620_15674.pdf/iframe ¿Why doesn't work? if it is in

[Rails] Re: invalid date

2010-11-30 Thread Jesus Granados
Frederick Cheung wrote in post #965072: On Nov 27, 3:30am, Tiesto esau...@gmail.com wrote: Hi!! Somebody knows why throws me an exception?? Sounds to me like the soap response ruby is trying to parse for you contains an invalid date (eg Februrary 31st). Have you tried looking at the soap

[Rails] Re: iFrame and routes

2010-11-30 Thread Albert C.
Ok, don't panicm another wat to make the question: id DreamWeaver i can do: iframe src=file:///C:/druby/gestorweb/6465_p_61_620_15674.pdf/iframe but in a ruby form (_frame_pdf.html.erb) i Can not do the same iframe src=file:///C:/druby/gestorweb/6465_p_61_620_15674.pdf/iframe If i inspect

[Rails] Re: Checking parameters

2010-11-30 Thread Marnen Laibow-Koser
Please quote when replying. Kai Schlamp wrote in post #965115: Thanks for the answers. One last general question. Where do you validate your parameters fetched by params that should be passed to models? Do you check them right away in the controller and give them cleaned up to the model, or

[Rails] Re: iFrame and routes

2010-11-30 Thread Albert C.
Thanks, Perfect!!! as you can see I'm new in linux (mac)... all my live with windows Before you leave, please: this was a simple example to see somthing in iframe, bu files, in fact are en the local network. How i have to put, in iframe? src=//shared_dir/dir/6465_p_61_620_15674.pdf ??? or

[Rails] Re: Dependency Problem

2010-11-30 Thread Marnen Laibow-Koser
Andre Fonseca wrote in post #965095: Anyone knows or worked with DragonFly gems to make photo upload? I have some issue with this: DragonFly doesn't cleanup yours tempfiles... All the time that i get some file (I use fetch method from app), DragonFly create an new file in my tmp dir.

Re: [Rails] Re: iFrame and routes

2010-11-30 Thread Colin Law
On 30 November 2010 15:18, Albert C. li...@ruby-forum.com wrote: Please don't top post it makes it difficult to follow the thread. Insert your comments in the previous message. Thanks. Thanks, Perfect!!! as you can see I'm new in linux (mac)... all my live with windows Before you leave,

[Rails] Re: Re: iFrame and routes

2010-11-30 Thread Albert C.
Colin Law wrote in post #965126: On 30 November 2010 15:18, Albert C. li...@ruby-forum.com wrote: Please don't top post it makes it difficult to follow the thread. Insert your comments in the previous message. Thanks. or src=/shared_dir/dir/6465_p_61_620_15674.pdf ??? As I said in

Re: [Rails] Re: Re: iFrame and routes

2010-11-30 Thread Colin Law
On 30 November 2010 15:32, Albert C. li...@ruby-forum.com wrote: Colin Law wrote in post #965126: On 30 November 2010 15:18, Albert C. li...@ruby-forum.com wrote: Please don't top post it makes it difficult to follow the thread. Insert your comments in the previous message.  Thanks. or

Re: [Rails] HTML5 placeholder attribute and i18n proposal

2010-11-30 Thread Peter De Berdt
On 29 Nov 2010, at 23:31, Paul Schreiber wrote: This was filed as: https://rails.lighthouseapp.com/projects/8994/tickets/6080-i18n-support-for-html5-placeholder-attribute …and Aditya Sanghi suggsted I post to the list about it Currently, Rails' I18n system automatically looks up localized

Re: [Rails] Re: Dependency Problem

2010-11-30 Thread Andre Fonseca
Sorry !! I forgot this. I will open new one. Thank you. Att Andre -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to

[Rails] Rails server does not take in account the production and still used development db

2010-11-30 Thread Gregory Grimaux
0 down vote favorite Hi, since several days I have this problem: For a few days it has worked and now I can't do it works again. I setup a rails server on ubuntu with apache-2. I used a git repository to get all new change. After I run sudo rake db:migrate RAILS_ENV=production But after have

[Rails] Re: incompatible character encodings: ASCII-8BIT and UTF-8

2010-11-30 Thread Marnen Laibow-Koser
Gjermund Lunder wrote in post #965049: Anyone know how to add this patch?: 0001-enforced-utf-8-encoding-for-ruby-19-and-mysql-text.patch (https://rails.lighthouseapp.com/projects/8994/tickets/4683-ascii-8bit-and-utf-8-in-hell) I've never applied such a pacth. It's a standard *nix patch

[Rails] Re: Rails server does not take in account the production and still used development db

2010-11-30 Thread Marnen Laibow-Koser
Gregory Grimaux wrote in post #965148: 0 down vote favorite Hi, since several days I have this problem: For a few days it has worked and now I can't do it works again. I setup a rails server on ubuntu with apache-2. I used a git repository to get all new change. After I run sudo rake

[Rails] Install Requirements for Independent Development

2010-11-30 Thread Peter Macgown
Hi, I am absolutely new to Ruby and I want to do the following: 1 - I want to put all of my Ruby on Rails development on a single memory stick drive. The purpose of this is so that I can develop Ruby on Rails applications no matter where I plug in, (Linux, Windows, Mac). 2 - Can I do this? 3 -

[Rails] Compose data for a column from two fields

2010-11-30 Thread Leonel *.*
I'm working on a datepicker and a timepicker. The datepicker is the jQuery datepicker. The timepicker displays a drop down menu with available times. I want to have two different fields: the datepicker and timepicker. Then mix up the two (probably in the controller) and come up with the whole

[Rails] Re: Install Requirements for Independent Development

2010-11-30 Thread Marnen Laibow-Koser
Peter Macgown wrote in post #965156: Hi, I am absolutely new to Ruby and I want to do the following: 1 - I want to put all of my Ruby on Rails development on a single memory stick drive. The purpose of this is so that I can develop Ruby on Rails applications no matter where I plug in,

[Rails] Re: Compose data for a column from two fields

2010-11-30 Thread Ray Parker
Use the _tag versions of the form helpers. i.e., text_field_tag instead of f.text field. On Nov 30, 11:52 am, Leonel *.* li...@ruby-forum.com wrote: I'm working on a datepicker and a timepicker. The datepicker is the jQuery datepicker. The timepicker displays a drop down menu with available

[Rails] Re: Compose data for a column from two fields

2010-11-30 Thread Marnen Laibow-Koser
Leonel *.* wrote in post #965158: I'm working on a datepicker and a timepicker. The datepicker is the jQuery datepicker. The timepicker displays a drop down menu with available times. I want to have two different fields: the datepicker and timepicker. Then mix up the two (probably in the

[Rails] Problem with Dragonfly gem

2010-11-30 Thread Andre Fonseca
Anyone work or know about gem dragonfly ? I use this for photo upload in a web app. My problem is Dragonfly does not delete the files it created in tmp dir. All time, when i fetch some file, it create one tempfile (dragonfly_2010). No one clean up this files after Dragonfly finish. Is there

Re: [Rails] Re: Strange error while using Authlogic

2010-11-30 Thread Philip Hallstrom
On Nov 29, 2010, at 11:58 PM, Konstantinos Loupos wrote: Hi colin, as i have seen, authlogic does require default names like login, password etc. I was using t_login and t_password as i result getting these errors. I re-created my table with the new fields and everything works fine!!!

[Rails] Re: incompatible character encodings: ASCII-8BIT and UTF-8

2010-11-30 Thread Robert K.
Marnen Laibow-Koser wrote in post #965150: It's a standard *nix patch file. The patch command could read it (see its man page for more details), but the a/ and b/ file naming scheme means that you'd probably be better off using git apply. Is possible use a patch command also under Windows?

[Rails] Re: incompatible character encodings: ASCII-8BIT and UTF-8

2010-11-30 Thread Robert K.
Gjermund Lunder wrote in post #964821: Robert K. (or others), If you do have have the exact line for the enforce coding and in witch erb files to put it I would be happy. To replicate this error, call: rails -v Rails 3.0.3 ruby - v ruby 1.9.2p0 (2010-08-18) [i386-mingw32] Mysql version:

[Rails] How Rails handles database connection in the background??

2010-11-30 Thread Anusuya R.
I am trying show controller specific pages in my rails app when the database connection goes away. I do this by catching the Mysql::Error in the rescue_action method and rendering appropriate pages. When the mysql service alone is stopped , i get the Mysql::Error exception really quickly and i

[Rails] Re: Compose data for a column from two fields

2010-11-30 Thread IAmNan
Leonel, Rails is (rightfully) telling you that those attributes of the model don't exist yet. You said, ...then mix up the two (probably in the controller)... That's the part that is missing. How you do that is through virtual attributes (see Railscast #16 and #167) and done in the Model, not the

Re: [Rails] Install Requirements for Independent Development

2010-11-30 Thread Norm Scherer
Peter Macgown wrote: Hi, I am absolutely new to Ruby and I want to do the following: 1 - I want to put all of my Ruby on Rails development on a single memory stick drive. The purpose of this is so that I can develop Ruby on Rails applications no matter where I plug in, (Linux, Windows, Mac). 2

[Rails] Re: Compose data for a column from two fields

2010-11-30 Thread Leonel *.*
I was working on that two months ago and I thought I had everything figured out. But I stopped coding and now that I'm back I can't remember what was my plan to do that. Thanks guys! I'll try your suggestions. -- Posted via http://www.ruby-forum.com/. -- You received this message because

[Rails] routes friendly URL's

2010-11-30 Thread andyl
I have a Rails3 app with three resources: - League (has_many :teams) - Team (belongs_to :league, has_many :players) - Player (belongs_to :team) With standard nested routes, I get URLs like: /leagues (lists all leagues) /leagues/2(shows league #2) /leagues/2/teams (lists all

[Rails] Re: Re: Re: wkhtmltopdf and PDFkit

2010-11-30 Thread Nick Burdick
David Kahn wrote in post #965093: On Tue, Nov 30, 2010 at 3:25 AM, Conor Nugent li...@ruby-forum.com wrote: pdfkit --install-wkhtmltopdf or manually Sorry, I know this isn't much help! Right... also, when you say your pdf is blank --- does the file actually open or is it empty? I had

[Rails] Re: Install Requirements for Independent Development

2010-11-30 Thread Marnen Laibow-Koser
Norm Scherer wrote in post #965176: Peter Macgown wrote: Hi, I am absolutely new to Ruby and I want to do the following: 1 - I want to put all of my Ruby on Rails development on a single memory stick drive. The purpose of this is so that I can develop Ruby on Rails applications no matter

Re: [Rails] routes friendly URL's

2010-11-30 Thread Brian Troutwine
On Tue, Nov 30, 2010 at 11:26 AM, andyl akl...@gmail.com wrote: I have a Rails3 app with three resources: - League (has_many :teams) - Team (belongs_to :league, has_many :players) - Player (belongs_to :team) With standard nested routes, I get URLs like: /leagues          (lists all

[Rails] Re: routes friendly URL's

2010-11-30 Thread Marnen Laibow-Koser
andyl wrote in post #965181: I have a Rails3 app with three resources: - League (has_many :teams) - Team (belongs_to :league, has_many :players) - Player (belongs_to :team) With standard nested routes, I get URLs like: /leagues (lists all leagues) /leagues/2(shows league

[Rails] Re: Re: Re: wkhtmltopdf and PDFkit

2010-11-30 Thread Nick Burdick
Ok, here's one for you. I ran wkhtmltopdf -H www.google.com google.pdf and got a blank document but it had the header. Then I loaded an html file that I had on my local computer and it worked good stuff. It appears that my command line is just having trouble reaching the internet. I'm

[Rails] Re: Installing a gem in an application

2010-11-30 Thread Matt Jones
On Nov 29, 9:50 pm, Ralph Shnelvar li...@ruby-forum.com wrote: When I attempt to launch my application on my server, the Mongrel log says that Missing these required gems:   haml I do not control my server and the ISP has told me that he will give me no support in terms of Ruby on Rails.

[Rails] Re: invalid date

2010-11-30 Thread Frederick Cheung
On Nov 30, 3:01 pm, Jesus Granados li...@ruby-forum.com wrote: Frederick Cheung wrote in post #965072: On Nov 27, 3:30am, Tiesto esau...@gmail.com wrote: Hi!! Somebody knows why throws me an exception?? Sounds to me like the soap response ruby is trying to parse for you contains an

Re: [Rails] Re: Install Requirements for Independent Development

2010-11-30 Thread Norm Scherer
Marnen Laibow-Koser wrote: Norm Scherer wrote in post #965176: Peter Macgown wrote: Hi, I am absolutely new to Ruby and I want to do the following: 1 - I want to put all of my Ruby on Rails development on a single memory stick drive. The purpose of this is so that I can develop Ruby

Re: [Rails] Re: Re: Re: wkhtmltopdf and PDFkit

2010-11-30 Thread David Kahn
On Tue, Nov 30, 2010 at 12:13 PM, Nick Burdick li...@ruby-forum.com wrote: David Kahn wrote in post #965093: On Tue, Nov 30, 2010 at 3:25 AM, Conor Nugent li...@ruby-forum.com wrote: pdfkit --install-wkhtmltopdf or manually Sorry, I know this isn't much help! Right...

Re: [Rails] Problem with Dragonfly gem

2010-11-30 Thread Luke Cowell
When you're configuring dragonfly try something like this: app.configure_with(:imagemagick, :use_filesystem = false) Luke On 2010-11-30, at 9:08 AM, Andre Fonseca wrote: Anyone work or know about gem dragonfly ? I use this for photo upload in a web app. My problem is Dragonfly does not

[Rails] Re: Re: Install Requirements for Independent Development

2010-11-30 Thread Marnen Laibow-Koser
Norm Scherer wrote in post #965196: Marnen Laibow-Koser wrote: 2 - Can I do this? I think not. At the minimum you will require a ruby environment on each of the computers and that environment is unique to the system. That is to say the ruby interpreter that runs on Linux will not run on

[Rails] Re: Installing a gem in an application

2010-11-30 Thread Ralph Shnelvar
Matt Jones wrote in post #965193: On Nov 29, 9:50pm, Ralph Shnelvar li...@ruby-forum.com wrote: in some directory that will allow haml to be found? I'm guessing that you're running on Rails 2.3, as I believe the 3.x message is different (and Bundler would handle most of this). On your

Re: [Rails] Re: Re: Install Requirements for Independent Development

2010-11-30 Thread Norm Scherer
Marnen Laibow-Koser wrote: Norm Scherer wrote in post #965196: Marnen Laibow-Koser wrote: 2 - Can I do this? I think not. At the minimum you will require a ruby environment on each of the computers and that environment is unique to the system. That is to say the ruby

[Rails] Re: Checking parameters

2010-11-30 Thread Matt Jones
On Nov 29, 3:30 pm, turkan kai.schl...@googlemail.com wrote: Hi. I am often checking the same parameters (like param[:page] and param[:per_page]) in models over and over again (are those in a specific range ... if not use defaults): page = !options[:page].blank? options[:page] =~

[Rails] Re: Install Requirements for Independent Development

2010-11-30 Thread Peter Macgown
Thanks for you help! What if I were to reign this in to just Windows? Would that work for me in what I want to do? I could limit my work to just XP(still cool) and Vista(ugh gross!). --Peter -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed

[Rails] Re: Install Requirements for Independent Development

2010-11-30 Thread Marnen Laibow-Koser
Peter Macgown wrote in post #965207: Thanks for you help! What if I were to reign this in to just Windows? Would that work for me in what I want to do? I could limit my work to just XP(still cool) and Vista(ugh gross!). Bad idea: Rails development works best on *nix. What's your use

[Rails] Can't install PG gem

2010-11-30 Thread Chris Lemcke
I'm running ruby 1.8.7 on rvm, and I'm trying to install the pg gem. I've used macports to install postgresql 8.3. I'm running on a dual-core mac. I try installing the pg gem with this command: (all directories are not empty) env ARCHFLAGS=-arch x86_64 gem install pg --

[Rails] Re: Installing a gem in an application

2010-11-30 Thread Marnen Laibow-Koser
Ralph Shnelvar wrote in post #965201: [...] I believe that rake gems:unpack will unpack everything that I need. Isn't unpack a _terrible_ name for what the operation does!? Why do you think so? It takes a gem and unpacks the files into vendor/gems. Isn't unpack a _perfect_ name for

Re: [Rails] Fresh podcasts

2010-11-30 Thread Roman Truschev
Look at http://ruby5.envylabs.com/ but they are too short for long listening On Tue, Nov 30, 2010 at 2:14 AM, Vladimir Rybas vladimirry...@gmail.comwrote: Hey dudes, Does anybody know where to find a fresh Ruby/Rails podcasts? Which ones do you listen to? Looks like

[Rails] IE problem with submit_tag

2010-11-30 Thread Rick
I'm having some difficulty with IE8 on a Rails 2.3.5 app. I'll state from the outset that this problem does not occur with Firefox, Chrome, or Opera when run on the same system so I'm reasonably certain I've got an IE issue here. Here's a simple description: I'm ending a Users#new form with:

[Rails] Re: Re: Re: Re: wkhtmltopdf and PDFkit

2010-11-30 Thread Nick Burdick
:) Yep... it should go without saying... but that seems to be exactly what my problem is. Go figure. I'm still having an error issue inside Rails, but I think that has something to do with the configuration. -- Posted via http://www.ruby-forum.com/. -- You received this message because you

Re: [Rails] Re: Re: Re: Re: wkhtmltopdf and PDFkit

2010-11-30 Thread David Kahn
On Tue, Nov 30, 2010 at 1:13 PM, Nick Burdick li...@ruby-forum.com wrote: :) Yep... it should go without saying... but that seems to be exactly what my problem is. Go figure. I'm still having an error issue inside Rails, but I think that has something to do with the configuration. Hmmm

Re: [Rails] HTML5 placeholder attribute and i18n proposal

2010-11-30 Thread Walter McGinnis
I would encourage you to implement it and submit a patch following the processes outlined in the contributors guide: https://rails.lighthouseapp.com/projects/8994/sending-patches It seems a good idea to me and creating a ticket and a patch for the feature is the best way to get the Rails Core

[Rails] Re: Install Requirements for Independent Development

2010-11-30 Thread Peter Macgown
Hi Marnen, I have three different PC's running Windows (2 XP's and 1 Vista) at disparate locations. Unix is moot since it is not available to me. I do not want to be limited to do development at a single location. My use case is to capture sensor gestalt from an Arduino board and store it in a

[Rails] Re: Install Requirements for Independent Development

2010-11-30 Thread Marnen Laibow-Koser
Peter Macgown wrote in post #965218: Hi Marnen, I have three different PC's running Windows (2 XP's and 1 Vista) at disparate locations. Those should be binary-compatible, then. (Why you'd torture yourself with Windows is another question. :) ). Unix is moot since it is not available to

Re: [Rails] Re: Install Requirements for Independent Development

2010-11-30 Thread Norm Scherer
Peter Macgown wrote: Thanks for you help! What if I were to reign this in to just Windows? Would that work for me in what I want to do? I could limit my work to just XP(still cool) and Vista(ugh gross!). --Peter I do not really like it as a development environment but you could install

[Rails] db migration fails

2010-11-30 Thread Franck
I'm deploying new rails applications. Everything works well except when it comes to the db migration: * executing cd /var/rails/benefits_test/releases/20101129190121 /opt/ruby-enterprise-1.8.7-2010.02/bin/rake RAILS_ENV=production db:util:migrate servers: [ps-test-app1] [ps-test-app1] executing

Re: [Rails] IE problem with submit_tag

2010-11-30 Thread Colin Law
On 30 November 2010 19:06, Rick richard.t.ll...@gmail.com wrote: I'm having some difficulty with IE8 on a Rails 2.3.5 app.  I'll state from the outset that this problem does not occur with Firefox, Chrome, or Opera when run on the same system so I'm reasonably certain I've got an IE issue

[Rails] how to 'delete' an object from an association collection in-memory only

2010-11-30 Thread Lille
Hi, My Rails app offers opportunities to try out models on a 'what-if' basis, where dependent associations can be modified to obtain alternative results for the parent. Is there a way to delete/destroy the member of a collection so that I can play around with the accordingly modified parent in

[Rails] Re: Checking parameters

2010-11-30 Thread Kai Schlamp
Validation in the controller will lead to repetitive code scattered all over the application. Ok, then one last last question ;-) ... just want to make sure that I do it the Rails way. When you let the user pass several paramters regarding how the instances of your model are presented (order,

[Rails] Re: Re: Re: Re: wkhtmltopdf and PDFkit

2010-11-30 Thread Conor Nugent
Again- I'm not sure I'm really helping here at all but I had to add the following to application.rb #pdfkit config.middleware.use PDFKit::Middleware, :print_media_type = true PDFKit.configure do |config| config.wkhtmltopdf =

Re: [Rails] Re: Checking parameters

2010-11-30 Thread Walter Lee Davis
On Nov 30, 2010, at 3:27 PM, Kai Schlamp wrote: Validation in the controller will lead to repetitive code scattered all over the application. Ok, then one last last question ;-) ... just want to make sure that I do it the Rails way. When you let the user pass several paramters regarding

[Rails] Re: Install Requirements for Independent Development

2010-11-30 Thread Peter Macgown
Marnen Laibow-Koser wrote in post #965219: Peter Macgown wrote in post #965218: Hi Marnen, I have three different PC's running Windows (2 XP's and 1 Vista) at disparate locations. Those should be binary-compatible, then. (Why you'd torture yourself with Windows is another question. :) ).

[Rails] Cucumber+Capybara rails 3 issue (Don't know where exactly)

2010-11-30 Thread yurokle
When I'm executing cucumber tests, I noticed that sometimes rails app (in test env.) getting several the same requests (GET or POST) usually around 3, and it doesn't render anything with empty HTTP status code. Have anyone met something similar to that issue? here is some example of log file:

Re: [Rails] Cucumber+Capybara rails 3 issue (Don't know where exactly)

2010-11-30 Thread Brian Troutwine
On Tue, Nov 30, 2010 at 3:45 PM, yurokle yuro...@gmail.com wrote: When I'm executing cucumber tests, I noticed that sometimes rails app (in test env.) getting several the same requests (GET or POST) usually around 3, and it doesn't render anything with empty HTTP status code. Have anyone met

[Rails] Re: Rails 2.3.8 Action Caching without layout (ajax and non-ajax requests)

2010-11-30 Thread nico
Okay, I debugged a bit more and found out what the problem is (at least when locally in development environment). Inside the action cache content_for_layout is called to get the content to be cached if layout is set to false. This causes my ajax requests to be not cached because content_for_layout

[Rails] Re: Cucumber+Capybara rails 3 issue (Don't know where exactly)

2010-11-30 Thread yurokle
In this case they are pretty simple: just going to some page, checking a checkbox and pressing submit button. But I'm not sure if scenarios can be the issue here, cos I'm getting the same issue for two next cases: BASIC SCENARIO: Scenario: User makes his profile public Given I am logged in

[Rails] Re: Error installing rails 3, get error: mail requires i18n (~ 0.4.1, runtime)

2010-11-30 Thread John
Sarah, First, from the command prompt type gem list to see everything you have installed. Verify the name of the gem you want to uninstall. Then, from the command prompt, type gem uninstall i18n You can substitute the name of any gem for i18n, but I think you referenced that as your problem gem.

[Rails] Did I miss a meeting?!

2010-11-30 Thread Michael Pavling
I've just stumbled (literally, while I was trying to fix a glitch I was having after upgrading Aegis...) on the Inherited Resources gem... why did no-one tell me?! ;-) Is everyone else using some form of controller base-class? Am I the last on this bus!

[Rails] Re: Install Requirements for Independent Development

2010-11-30 Thread Marnen Laibow-Koser
Peter Macgown wrote in post #965230: Marnen Laibow-Koser wrote in post #965219: Peter Macgown wrote in post #965218: Hi Marnen, I have three different PC's running Windows (2 XP's and 1 Vista) at disparate locations. Those should be binary-compatible, then. (Why you'd torture yourself

  1   2   >