On 8 December 2010 07:04, Akeel Qureshi li...@ruby-forum.com wrote:
Hello All
I am getting this error, any one resolved this. it's urgent
ruby script/server --debugger
= Booting WEBrick...
= Debugger enabled
config.gem: Unpacked gem rspec-rails-1.1.11 in vendor/gems has no
run with -- trace and post here
On Wed, Dec 8, 2010 at 1:05 PM, Vamsi Krishna li...@ruby-forum.com wrote:
Hi,
When i was migrating the db i got the following error.
rake db:migrate
rake aborted!
no such file to load -- java
Can you please let me know what to do to solve this.
--
Thanks Colin!
You found the root of my problem, the invoice/id was wrong. And thanks
for the tips regarding Ruby-debug. Still has a lot to learn. :D
// Anders
On 7 Dec, 22:35, Colin Law clan...@googlemail.com wrote:
On 7 December 2010 21:03, Anders_P and...@andersplanting.se wrote:
On 7 déc, 21:54, bravehoptoad bravehopt...@gmail.com wrote:
Just checking:
UTF-8 without BOM: no problems
UTF-8 with BOM: problems
Right?
Correct.
I've never seen this problem on *nix. I wonder if it's an artifact of
Windows' text handling routines.
Yes, I strongly suspect,
Kannav R. wrote in post #967134:
run with -- trace and post here
On Wed, Dec 8, 2010 at 1:05 PM, Vamsi Krishna li...@ruby-forum.com
wrote:
--
http://groups.google.com/group/rubyonrails-talk?hl=en.
--
Thanks:
Rajeev sharma
+919013155133
here the trace:
paste here yours
D:/vamsi/config/environment.rb:22
On Wed, Dec 8, 2010 at 2:12 PM, Vamsi Krishna li...@ruby-forum.com wrote:
Kannav R. wrote in post #967134:
run with -- trace and post here
On Wed, Dec 8, 2010 at 1:05 PM, Vamsi Krishna li...@ruby-forum.com
wrote:
--
Kannav R. wrote in post #967147:
paste here yours
D:/vamsi/config/environment.rb:22
On Wed, Dec 8, 2010 at 2:12 PM, Vamsi Krishna li...@ruby-forum.com
wrote:
D:/vamsi/vendor/rai
C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in
how do i know which is line 22
On Wed, Dec 8, 2010 at 2:58 PM, Vamsi Krishna li...@ruby-forum.com wrote:
Kannav R. wrote in post #967147:
paste here yours
D:/vamsi/config/environment.rb:22
On Wed, Dec 8, 2010 at 2:12 PM, Vamsi Krishna li...@ruby-forum.com
wrote:
For an existing rails application, which is better? building
integration tests through cucumber or through selenium
Regards,
Pankaj
--
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
this is the line no: 22
Rails::Initializer.run do |config|
--
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
In my application, there's a point where a user will initiate an action
that will take a LONG time to complete. (Among other things, it needs
to dynamically gather data from a number of external sources.) Rather
than simply leaving the user hanging while waiting for a response, I'd
like to give
Hello.. Im new in this forum.. and I was asking me if somebody can help
me in a problem.. I implemented jasperreports in rails.. its exccelent
because the reports open in a pdf and I can print it.. but the problem
is that I cant print the pdf report in a dot printer (Epson LX-300) the
document is
So this query is about how to print PDFs on an Epson LX-300?
Is this a problem for all PDFs or just those created by jasperreports?
If it is a problem with all PDFs then this is not a Ruby/Rails problem
and you should either talk to Epson about drivers and the like or, as
I suspect, resign
hello.. well I was asking is there a way to see the jasperreport in
RAILS aplication in another program not pdf like jasperviewer..
Thanks
Lumbar
--
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,
When i'm provide gem install mysql command, i got the following error.
Please support me in getting out this error.
Building native extensions. This could take a while...
ERROR: Error installing mysql:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.8 extconf.rb
checking
Thanks to Rails developer team.
I tried Rails3 along this guide:
Ruby on Rails Guides: Getting Started with Rails
http://edgeguides.rubyonrails.org/getting_started.html
and I met the problem described as following.
...Any ideas?
===
Environment:
===
$ ruby -v
ruby 1.8.7
On Dec 8, 11:35 am, Fearless Fool li...@ruby-forum.com wrote:
My first instinct is to spawn a thread to run the process, and use a
carefully managed interface to provide updates. But I suspect that may
not work the way I expect -- it really depends on the lifecycle of
ActionPack
No, what you asked was the problem is that I cant print the pdf
report in a dot printer (Epson LX-300) the document is ugly and I cant
read it because its distorsioned
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To post to this group,
On 8 December 2010 12:32, Priya Buvan li...@ruby-forum.com wrote:
Hi All,
When i'm provide gem install mysql command, i got the following error.
Please support me in getting out this error.
Building native extensions. This could take a while...
ERROR: Error installing mysql:
ERROR:
Sorry Colin.. I'm using Ubuntu 10.10 and rails 2.3.5
Colin Law wrote in post #967171:
On 8 December 2010 12:32, Priya Buvan li...@ruby-forum.com wrote:
Hi All,
When i'm provide gem install mysql command, i got the following error.
Please support me in getting out this error.
Building
On 8 December 2010 13:28, Priya Buvan li...@ruby-forum.com wrote:
Please don't top post, it makes it difficult to follow the thread.
Insert your reply into the previous post. Thanks.
Sorry Colin.. I'm using Ubuntu 10.10 and rails 2.3.5
In that case I believe you should be using sudo for
Hi all can you please guide me on how to setup a new rails3
application with oracle as the database.
i have tried so many times and havin errors..
I used this command
rails new app name --database oracle
it does create the application fine but in the database.yml file i
have something like this
No ideas at all?
(Am I the only one with this 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-t...@googlegroups.com.
To unsubscribe
i am using facebooker
and i have session keys
need to use Graph API that requires access_token
Please suggest me how to get that or how to exchange session keys
into access_token of all users
Thanks in advance
--
You received this message because you are subscribed to the Google Groups Ruby
pankaj wrote in post #967152:
For an existing rails application, which is better? building
integration tests through cucumber or through selenium
They're not mutually exclusive. Use Cucumber, and if you have extensive
JavaScript to test drive Selenium or Celerity through Cucumber.
Regards,
On 08 Dec 2010, at 13:37, Frederick Cheung wrote:
On Dec 8, 11:35 am, Fearless Fool li...@ruby-forum.com wrote:
My first instinct is to spawn a thread to run the process, and use a
carefully managed interface to provide updates. But I suspect that
may
not work the way I expect -- it
On Dec 8, 2010, at 2:27 AM, Misha Ognev wrote:
Did you have 1.9.1 once upon a time?
Yes, I have.
Have you installed any gems since upgrading to 1.9.2?
Yes, wxruby ad wxsugar. But I can delete them and reinstalling
later, if
it need.
Walter, what I must to do?
And can you copy and paste
Thanks Kyle, worked awesomely on my macosx machine.
Kyle Fox wrote in post #846791:
To fix this, specify ARCHFLAGS when you install the 'mysql' gem:
sudo env ARCHFLAGS=-arch x86_64 gem install mysql -- --with-mysql-
config=/usr/local/mysql/bin/mysql_config
On Aug 27, 12:07 pm, Caleb Cullen
On Wed, Dec 8, 2010 at 12:44 AM, Marnen Laibow-Koser
li...@ruby-forum.comwrote:
It's more idiomatic Ruby. You'd write x == 2, not x.eql?(2), and your
matchers should follow the same practice for better readability.
I actually prefer x.size == 3 over x.size.should eql(3), I was just trying
On Dec 7, 4:12 pm, Marnen Laibow-Koser li...@ruby-forum.com wrote:
Look up the RDoc for ActiveSupport::Cache::Store. You'll need to use
the interface described there (at least in Rails 2).
Thanks. Turned out to be way simple...
@menu_items = Rails.cache.fetch(:menu_items_all) { MenuItem.all }
On Wed, Dec 8, 2010 at 2:39 AM, Roger chiefi...@gmail.com wrote:
def feature_types
results = Hash.new
prev = nil
@features.each do |f|
if (f.feature_type.name != prev)
results[f.feature_type.name] = []
end
results[f.feature_type.name] f
prev =
On Dec 8, 3:39 pm, Tim Shaffer timshaf...@me.com wrote:
On Dec 7, 4:12 pm, Marnen Laibow-Koser li...@ruby-forum.com wrote:
Look up the RDoc for ActiveSupport::Cache::Store. You'll need to use
the interface described there (at least in Rails 2).
Thanks. Turned out to be way simple...
Hi, I'm using JRuby 1.5.6 on Rails to build myself an application that
will periodically go away and retrieve any RSS podcasts that I have
subscribed too.
I've chosen JRuby primarily because I'm familiar with Java, wish to
utilise the Rails framework and most importantly I'm able to perform the
Hi There!
Im trying to install act_as ferret on win xp, with this
environment:
winXP
ruby : 1.8.7
rails: 2.3.8
gem list:
abstract (1.0.0)
actionmailer (3.0.1, 2.3.8, 1.3.3)
actionpack (3.0.1, 2.3.8, 2.3.2, 1.13.6, 1.13.3)
actionwebservice (1.2.6, 1.2.3)
activemodel (3.0.1)
activerecord (3.0.1,
Hello.
In one of my ActiveRecord models I specified a a serialize field:
serialize :settings MyModelSettings
If I understand the documentation correctly this restricts settings to
the class MyModelSettings. The problem is that this is so restrictive
that I even don't know how to initialize the
Frederick Cheung wrote in post #967208:
On Dec 8, 3:39pm, Tim Shaffer timshaf...@me.com wrote:
On Dec 7, 4:12pm, Marnen Laibow-Koser li...@ruby-forum.com wrote:
Look up the RDoc for ActiveSupport::Cache::Store. You'll need to use
the interface described there (at least in Rails 2).
Phil Ostler wrote in post #967209:
Hi, I'm using JRuby 1.5.6 on Rails to build myself an application that
will periodically go away and retrieve any RSS podcasts that I have
subscribed too.
I've chosen JRuby primarily because I'm familiar with Java, wish to
utilise the Rails framework and
On Dec 8, 2010, at 12:55 PM, Marnen Laibow-Koser wrote:
I'm going to suggest that you experiment with switching away from JRuby.
I think you have chosen it for what appear to be the wrong reasons: if
you are using Ruby correctly, you generally won't need Java for heavy
lifting.
I don't
rubynuby wrote:
in the console, I know I can reload a file with load 'foo.rb'. Is
there a way to reload everything, as if I typed quit and script/
console, but without losing the history (I type slow). I tried
reload! but that doesn't do it. thanks
I'm using Ruby 1.9.2, Rails 3.0.3, Passenger 3.0.0 and MySQL 5.1
rails new library
cd library
rails generate scaffold Book name:string
rake db:migrate RAILS_ENV=production
rails console production
200.times { |i| Book.create(:name = Book #{i}) }
ab -n 100 -c 10
On Dec 8, 11:08 am, Frederick Cheung frederick.che...@gmail.com
wrote:
On Dec 8, 3:39 pm, Tim Shaffer timshaf...@me.com wrote: On Dec 7, 4:12 pm,
Marnen Laibow-Koser li...@ruby-forum.com wrote:
Look up the RDoc for ActiveSupport::Cache::Store. You'll need to use
the interface described
On Wed, Dec 8, 2010 at 10:26 AM, Victor Cisneiros li...@ruby-forum.comwrote:
I'm using Ruby 1.9.2, Rails 3.0.3, Passenger 3.0.0 and MySQL 5.1
rails new library
cd library
rails generate scaffold Book name:string
rake db:migrate RAILS_ENV=production
rails console production
200.times {
The heavy lifting tasks I refer too are heavy data processing or IO
heavy tasks that have performed poorly in early prototypes using a Ruby
only approach.
For example, once a RSS feed is downloaded and parsed, it's elements
(usually mp3's of 100mb+ each) are then to be downloaded and stored away
Conrad Taylor wrote in post #967247:
On Wed, Dec 8, 2010 at 10:26 AM, Victor Cisneiros
li...@ruby-forum.comwrote:
359 ms for a 2.9 KB page
What is wrong? I was expecting something like 50-100 requests/sec
I remember trying this before in rails 2.3.8 and it was much faster
Hi, you need
Umarzuki Bin Mochlis Moktar wrote in post #967122:
thanks
Then again, there's always this:
Why's Poignant Guide to Ruby...
http://mislav.uniqpath.com/poignant-guide/
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups Ruby
Hi,
I have the same SMTP settings. I'm just sending emails to myself to test
out. I do the see the sent mail in the console. But I don't receive any
email.
The SMTP settings was working with Rails 2.3.8.
Any ideas?
Thanks!
--
Posted via http://www.ruby-forum.com/.
--
You received this
On Wed, Dec 8, 2010 at 2:39 AM, Roger chiefi...@gmail.com wrote:
All of that being said, I solved the problem (possibly improperly) by
doing this:
1) Adding a scope definition to feature_types called with_car, so,
FeatureType.with_car would find me the feature types that, by process,
can
Further to note, I run on Windows so suffer from a lack of cron.
In defence of JRuby's support for gems, I have never, up to now, come
across an instance where a gem hasn't worked in JRuby. I'm aware I don't
use JRuby as much as some guys out there, but I'd have expected to have
hit problems
Please quote when replying.
Phil Ostler wrote in post #967248:
The heavy lifting tasks I refer too are heavy data processing or IO
heavy tasks that have performed poorly in early prototypes using a Ruby
only approach.
For example, once a RSS feed is downloaded and parsed, it's elements
Phil Ostler wrote in post #967256:
Further to note, I run on Windows so suffer from a lack of cron.
Rails doesn't work well on Windows, so you're making your life harder
here too.
In defence of JRuby's support for gems, I have never, up to now, come
across an instance where a gem hasn't
Rick R wrote in post #967255:
On Wed, Dec 8, 2010 at 2:39 AM, Roger chiefi...@gmail.com wrote:
from the already-established self.features array by using a select to
end
I still think it's cleaner to just get all features ordered by
feature_type_id and then just do your switching in the
Ar Chron wrote in post #967252:
Umarzuki Bin Mochlis Moktar wrote in post #967122:
thanks
Then again, there's always this:
Why's Poignant Guide to Ruby...
http://mislav.uniqpath.com/poignant-guide/
Fun read, but IMHO not a good learning book for beginners.
Best,
--
Marnen Laibow-Koser
I am using Rails 3.0.3, Ruby 1.9.2 with rvm on Ubunutu 10.04. I
generated a new app by rails new testunicorn. By default the Webrick
server runs ok. In order to try Unicorn I uncommented gem 'unicorn'
in Gemfile and did bundle install. rails server still runs webrick
and doing rails server
Colin Law wrote in post #966279:
On 5 December 2010 04:01, Reza reza@gmail.com wrote:
Hi there,
I've been working on an app with Rails3/Win32/MySQL. It has been
working fine, until I don't exactly when the :destroy method soes not
work and on the log I see the GET is sent to the
On Wed, Dec 8, 2010 at 1:25 PM, Colin Law clan...@googlemail.com wrote:
I am using Rails 3.0.3, Ruby 1.9.2 with rvm on Ubunutu 10.04. I
generated a new app by rails new testunicorn. By default the Webrick
server runs ok. In order to try Unicorn I uncommented gem 'unicorn'
in Gemfile and did
I have a 32 bit server that I wish to deploy an application to. I have
the deploy branch checked out on an i86_64 bit machine. What is the
proper way to deploy the application and its gems from the i86_64
machine?
Do I configure a deployment specific Gemfile, send only that, and then
run bundle
Hi,
how can I specify the order of included JavaScript files using
javascript_include_tag :all?
Thanks,
Gustavo
--
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
Gustavo de Sá Carvalho Honorato gustavohonorato wrote in post
#967278:
Hi,
how can I specify the order of included JavaScript files using
javascript_include_tag :all?
I don't think you can.
It's normally bad practice to use :all anyway. Just include the JS you
need on that particular
In my ongoing quest to wean myself of find_by_sql(), I now need to know
how to do multiple joins into a single table using the spiffy new
ActiveRecord query syntax.
As an example, imagine that an Edge is defined by its two vertices:
create_table vertices, :force = true do |t|
t.floatx
replacing this
td%= link_to 'Show', book %/td
td%= link_to 'Edit', edit_book_path(book) %/td
td%= link_to 'Destroy', book, :confirm = 'Are you sure?', :method =
:delete %/td
with this
tda href=/books/%= book.id %Show/a/td
tda href=/books/%= book.id %/editEditar/a/td
tda href=/books/%= book.id %
Hey thanks! Just like to say that factory_girl_rails (factory_girl
for Rails 3) works excellently.
On Dec 6, 5:24 pm, Marnen Laibow-Koser li...@ruby-forum.com wrote:
daze wrote in post #966672:
What is the preferred way to have testing data - fixtures, or
something like factory_girl
In the end, I just made a new rails 3 application and did a lot of
code transfer (copy/paste). It actually didn't take that long, and
things are great with the app in Rails 3.
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To post to
[I just *gotta* stop answering my own posts! :)]
Okay -- if you set up your associations properly, then the ActiveRecord
query syntax does the right thing. With one big flaw.
In the above Edge / Vertex example, declare associations as follows:
class Edge ActiveRecord::Base
belongs_to
I have installed a dependent library(libmysqlclient-dev), after that
mysql gem is installed successfully.
--
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 All,
I'm having unknown number of hashes. How to merge all those hashes into
single hash?
Thanks,
Buvana
--
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
Priya Buvan wrote in post #967340:
Hi All,
I'm having unknown number of hashes. How to merge all those hashes into
single hash?
Think about the semantics here! What happens if the same key appears in
all the hashes? Which value takes priority?
You can use inject to merge the hashes, but
On 9 December 2010 06:09, Priya Buvan li...@ruby-forum.com wrote:
I'm having unknown number of hashes. How to merge all those hashes into
single hash?
use merge... http://ruby-doc.org/core/classes/Hash.html#M002880
When you say you have unknown number, are they in an array? if so,
iterate it
@Michael: yes its in array..
@Marnen: If there is more than one key with same name, obviously it'll
be override. This is fine.
Anyway i'm trying to fetch the result separately. I'll reply with latest
updated soon.
Thanks,
Buvana
--
Posted via http://www.ruby-forum.com/.
--
You received
Here is a post you may interest
http://rails-bestpractices.com/posts/51-dry-bundler-in-capistrano
--
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
69 matches
Mail list logo