It seems the problem is already solved, as noted in the external
source: http://permalink.gmane.org/gmane.comp.lang.ruby.rails/264228
It was a network problem.
On 2 feb, 05:35, Mirage2008 rose.emm...@gmail.com wrote:
Actually it wasn't trivial. It helped me :0)
After the RubyGem/Bundler
Hi All,
I'm having trouble with a Rails app and I can't figure out what /
where the problem is.
From the logging and testing I've done, it looks like there is a
consistent 3 second delay between the time that Rails finishes
rendering the view and the time that the browser actually receives the
Hi,
i'have started a discussion in dragonfly google group because of
problems using dragonfly image processing gem with wicked_pdf.
http://groups.google.com/group/dragonfly-users/browse_thread/thread/c8602007c3e43753
In these post I have linked to a public github project for testing
this issue.
I'm still very new to RoR and had built a site for a friend. I'm now
trying to port it to version 3 and am having an issue with
remote_function.
Right now, in a layout file, I have an image_tag and for :onclick I am
using the following:
:onclick = remote_function(:url = { :controller = 'rcg',
On Feb 2, 4:52 am, Tushar Gandhi li...@ruby-forum.com wrote:
Hi,
Thanks for your reply, but still it is not working.
send_data expects you to be giving it the actual bytes to send, not a
url or a file path. You need to read the file yourself (or use
send_file which will take care of that)
On Feb 2, 7:20 am, Hemant Bhargava li...@ruby-forum.com wrote:
How do i take changing-variables on left hand side? I am trying it like
this, but gives me an error that expected end at line no. 50.
Abc.all.each do |a|
@some_array_#{a.name} = do_something --line number 50
end
Yups, I have used hash. That is much more clearer as well in code.:)
Thanks.
Frederick Cheung wrote in post #979078:
In this particular case you can use instance_variable_set. However i'd
usually not do this - I'd probably build up a hash instead.
Fred
--
Posted via
¿ Is this solution accessible from Models ? logger (...) in a model,
¿reach this code ( class ActiveSupport::BufferedLogger)?
thanks you
I like this solution (http://railscasts.com/episodes/56-the-logger)
in environment.rb:
class Logger
def format_message(level, time, progname, msg)
I'm not sure if we can say that there are any standards at all.
You should just check what fits for your needs best: transitions
declaration, callbacks, state checking interfaces etc.
Last time I was implementing state machine I chose AASM after trying
several other also just cos it fit to my
How does your factory declaration look like?
On Feb 2, 3:55 am, Kleber Shimabuku klebershimab...@gmail.com wrote:
Hi, I'm new on tests but trying to test the following method, but it
gives me an error message about nil is not a symbol.
# job.rb
==
def publish(url)
hi,
using activemerchant + rails the first time. how can i send my line
items + descriptions etc over to paypal so that the user can review
the items?
purchase_options{
:items = [
{
:name = Tickets,
:quantity = 22,
:description = Tickets for
After an update...
do you have a idea?
/home/dhe/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/site_ruby/1.9.1/psych.rb:148:in
`parse'
/home/dhe/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/site_ruby/1.9.1/psych.rb:148:in
`parse_stream'
I'm writing a Rails3 app that collects data as defined by an external
source. At periodic intervals, the external source will update their data
definitions and require a different schema to be presented to the
end-users.
My end users will be at different versions of the external data schema
I am getting unacceptable performace problems by using the roo gem for
reading a file by using XLSX or XLS library from this gem.
Someone may suggest me an alternative about how to parse an .XLSX file?
code
parsed_file = Excel.new(filename,false, :ignore) if (file_format.upcase
== XLS)
On Feb 2, 10:55 am, Solrac Caritas li...@ruby-forum.com wrote:
After an update...
do you have a idea?
I'd check your yaml translaction files.
Fred
--
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 connecting from Console to SQL Server with ruby on rails on windows XP
but while executing the following code, only the coloured code is executing,
i want the exact procedure, how to connect from database step by step
procedure..
require dbi
begin
# connect to the SQL server
dbh =
To test if the method is actually getting called place raise 'Inside
uploadFile' at the top of the method.
Tsega mailto:tsegasela...@gmail.com
February 1, 2011 3:50 PM
One thing I forgot here is that you need
I am looking at a ruby script and testing it...
I don't fully understand the following line of code :
database = YAML::load_file(config/#{fetch(:db_file,
'database.yml')})
= fetch(:db_file, 'database.yml') ...what's is this function
fetch() ?
I know the fetch(key, *extras) in
Well, I imagine you could, as long as all of your models had a key in
common. I mean, there's no practical difference between vanilla Rails
and this:
default_scope order('id ASC')
But if all of your models had a :position maybe you could do this
default_scope order('position ASC')
and see
I set up a Heroku account years ago, and put up a stupid scaffolding
demo, and promptly forgot all about it. Today, I had two copies of a
bill for $0.00 in my Spam folder from Heroku for that demo site.
Anybody else seen this?
Walter
--
You received this message because you are subscribed
On Feb 1, 2011, at 5:57 PM, Joe Martin wrote:
It looks like the Rails app receives the request as soon as curl sends
it. It process it in 12 or 19 milliseconds and then curl doesn't get
the response for another 3 full seconds.
What could possibly be causing the delay between the time that the
It would be useful if you posted the error messages.
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to
I just switched from NetBeans and I like it so far. I'm still
discovering cool shortcuts all over the place. The debugging is easy
and intuitive, the code completion seems a little better than
NetBeans, the favorite file view is great, since there are so many
files in Rails that I never want to
Hi, I'm trying to install RoR on my computer following the instructions on
the download page
(http://rubyonrails.org/download***http://rubyforge.org/frs/shownotes.php?release_id=45314
*). I've followed the instructions to the letter, trying I think 4 or 5
times (each time a fresh install), and
On Wed, Feb 2, 2011 at 8:26 AM, Walter Lee Davis wa...@wdstudio.com wrote:
I set up a Heroku account years ago, and put up a stupid scaffolding demo,
and promptly forgot all about it. Today, I had two copies of a bill for
$0.00 in my Spam folder from Heroku for that demo site.
I did too. I
You need to put sqlite3.dll in the ruby bin dir or you can try
http://rubyinstaller.org/
On Wed, Feb 2, 2011 at 9:44 PM, Parth B br.pa...@gmail.com wrote:
Hi, I'm trying to install RoR on my computer following the instructions on
the download page
Hi
It seems you r on windows system
You must put sqlite3.dll file into directory c:\windows\system32
see this
http://www.ruby-forum.com/topic/149431
Thanks and regards,
Shyam Mohan
Ruby on rails developer
Mobile : +91(0)86-8846-8400
Web : shyam.heroku.com
On Wed, Feb 2, 2011 at 8:14 PM,
Is this part of a capistrano script?
https://github.com/capistrano/capistrano/wiki/2.x-DSL-Configuration-Variables-FetchIf
so then it uses the value in deploy.rb where
set :db_file
is defined.
(Perhaps look here:
https://github.com/leehambley/capistrano-handbook/blob/master/index.markdown
)
On 1 February 2011 16:20, Mauro mrsan...@gmail.com wrote:
On 27 January 2011 16:56, Bruno Santos brunosp...@gmail.com wrote:
redcar is awesome
use to install
$ gem install redcar
$ redcar install
$ redcar
I'm trying it but when I run redcar I have:
Redcar 0.10 ( java )
Error loading
I hope that textmate have breakpoint and debugging like netbeans
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to
I tried following the install instructions and manually putting sqlite3.dll
into the appropriate gems subdirectory. This did not help. Further, I do not
feel comfortable adding any files to the Windows/System32 folder. If this
needed to happen, the installer would have done so, no?
Again to
Sorry in Step 5, it was cd C:\testApp as that is appropriate.
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to
On 2 February 2011 15:43, Ahmy Yulrizka ahmy...@gmail.com wrote:
I hope that textmate have breakpoint and debugging like netbeans
Netbeans rails support is discontinued? Ok, I've destroyed netbeans from my pc.
--
You received this message because you are subscribed to the Google Groups Ruby
Me three, and my thoughts are similar to David's. The party has to end
sometime.
I'd be sorry to see the free plan go because I use Heroku as a nursery
for tiny apps that for the most part sleep quietly, stirred only
occasionally from their slumber by that infernal Baidu spider (and its
Hassan Schroeder wrote in post #979000:
On Tue, Feb 1, 2011 at 2:42 PM, Anthony M. li...@ruby-forum.com wrote:
Apache does serve up the correct page, however when using 443 it doesn't
connect to the db but when using port 80 it works fine.
That makes pretty much zero sense :-)
Can we see
On 2 February 2011 15:47, Mauro mrsan...@gmail.com wrote:
On 2 February 2011 15:43, Ahmy Yulrizka ahmy...@gmail.com wrote:
I hope that textmate have breakpoint and debugging like netbeans
Netbeans rails support is discontinued? Ok, I've destroyed netbeans from my
pc.
Eh? Why? It's not like
On 2 February 2011 16:22, Steve Spiller rizsilverth...@googlemail.com wrote:
On 2 February 2011 15:47, Mauro mrsan...@gmail.com wrote:
On 2 February 2011 15:43, Ahmy Yulrizka ahmy...@gmail.com wrote:
I hope that textmate have breakpoint and debugging like netbeans
Netbeans rails support
I thought of that, but I don't see where it could be getting into the
mix. I'm running cURL directly on the application server and I'm
connecting to the application via 127.0.0.1 — no DNS there. The
database.yml is pointing to the database on 127.0.0.1 — no DNS there
either. I'm not using
I think it's some bad code that assumes it can't possibly send a bill for
0.00. Some defensive code is in order. All billing code should check for
sending out 0.00 bills and ridiculously large bills, even if it's redundant.
If you want to remind people that the service is free and may not remain
On 27 January 2011 16:56, Bruno Santos brunosp...@gmail.com wrote:
redcar is awesome
use to install
$ gem install redcar
$ redcar install
$ redcar
Do you know how to open redcar with the last session?
Every time I open redcar I must browse directories and reopen all my last files.
--
You
Were you ever able to find a solution for your issue? I am having the
same issue at youhttp://www.ruby-forum.com/topic/goto_post/979136
--
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
On Wed, Feb 2, 2011 at 8:20 AM, Anthony M. li...@ruby-forum.com wrote:
I changed the port in the VHost to 80 and commented out the SSL stuff
and restarted apache.
Apache Access Log -
10.10.20.108 - - [02/Feb/2011:10:56:45 -0500] GET / HTTP/1.1 200 1711
- Mozilla/5.0 (Windows NT 5.1;
Thanks , you're right, :db_file is defined, and the line runs well...
my concern was about the 'fetch' function which returns a string..
it seems to return the second string argument if the first is not
defined ...
but is it a Ruby function or a Rails function
I know a anArray.fetch(
Is there a way to get link_to to generate a body-less anchor?
I have a CSS sprite which represents an “add” / “remove” button which I
use, so I don’t want any body text. For example, I want something
similar to this:
a title=‘Add Attachment’ class=‘add_child’ onclick=‘add_asset_row'/a
Using
In this block:
lambda { @job.publish }.should
change(@job.available).from(false).to(true)
end
try putting the arguments to the change method in curly braces:
lambda { @job.publish }.should
change{@job.available}.from(false).to(true)
end
If you pass the method parameters, which is what it
Is there a way to get link_to to generate a body-less anchor?
Not sure I understand as what you ask for below isn't an anchor... ??
But maybe what you want is...
link_to_function '', 'add_asset_row()', :class = 'add_child'
Or if you really want a remote link just replace that '#' with '' and
Whatever directory you use to put your sqlite3.dll it must be in your
path. If you want to put it in your system directories (which I do not
recommend) like Windows\System32 they are already in the path. If you
install Ruby with RubyInstaller's installer and selected to put it to
the path you can
I tried their free trial, but I just couldn't get bast the initial
hump of how do I do this? and that the editor, even in Textmate
mode, is very un-like Textmate.
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To post to this group, send
2011/2/2 Albert Català li...@ruby-forum.com:
¿ Is this solution accessible from Models ? logger (...) in a model,
¿reach this code ( class ActiveSupport::BufferedLogger)?
I have logging in models, yes, and it works fine (at least on 2.3.x).
I like this solution
I want is to set
default_scope :order = 'created_at ASC'
for all models on default. How is that done?
On Wed, Feb 2, 2011 at 6:23 AM, Walter Lee Davis wa...@wdstudio.com wrote:
Well, I imagine you could, as long as all of your models had a key in
common. I mean, there's no practical difference
in what file do I put this or similar code?
On Wed, Feb 2, 2011 at 11:00 AM, Slava Mikerin mikerin.sl...@gmail.comwrote:
I want is to set
default_scope :order = 'created_at ASC'
for all models on default. How is that done?
On Wed, Feb 2, 2011 at 6:23 AM, Walter Lee Davis
Philip Hallstrom wrote in post #979207:
Not sure I understand as what you ask for below isn't an anchor... ??
But maybe what you want is...
link_to_function '', 'add_asset_row()', :class = 'add_child'
Or if you really want a remote link just replace that '#' with '' and it
should give you
Is there any way to do cleanly in Arel and/or ActiveRecord::Relation,
the following:
1. A *complex* OR clause
I am aware of:
t = A.arel_table (A === model, as = table)
A.where(t[:colum1].lt(x).or(t[:column2].gt(y)).to_a
but am looking for a case where I want to write something
Edward Stembler wrote in post #979228:
Now I need to figure out how to get it working with jQuery since I’m not
using Prototype…
Here’s how I got it to work using jQuery:
%=link_to_function '', $('#asset_rows').append('#{escape_javascript
render(:partial = 'partials/asset_row', :locals =
Thought Shop is currently seeking a freelance Ruby on Rails developer to join
our team for a 8 to 10 week project beginning March 1st 2011.
Requirements:
• An experienced Ruby developer
• Strong expertise in Rails
• Well versed in test/behavior-driven development,
Hassan Schroeder wrote in post #979196:
Whoa! Is this a Flex app? I haven't worked with Flex in forever, and
that
was with a Java back end. But looking at the above and then what's
being logged in SSL mode, I'm guessing you have to configure the Flex
client to use port 443, because those
*Solved,*
I do this:
%= select(:entry, :type_id, EntryType.find(:all).collect {|t|
[t.description, t.id]}, {:include_blanks = true}) %
if I put: f.select, It throws a exception...
Regards,
--
TSU. Amador Cuenca
--
You received this message because you are subscribed to the Google Groups Ruby
anyone?
-- Forwarded message --
hi,
using activemerchant + rails the first time. how can i send my line
items + descriptions etc over to paypal so that the user can review
the items?
purchase_options{
:items = [
{
:name = Tickets,
:quantity
On Wed, Feb 2, 2011 at 11:26 AM, Anthony M. li...@ruby-forum.com wrote:
This is where I would need some assistance on configuring the Flex
client. Any idea on where to start?
I'd guess there's at least an Adobe forum for Flex dev, though surely
there's also documentation /somewhere/ :-)
You might also consider a schemaless database, like MongoDB as the
storage. Then you can make arbitrary changes without changing a
schema at all.
--Michael
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To post to this group, send email
3 seconds is also very close to the time a server will wait for a
second request, when keep-alive is on. I don't know why it would be
triggered here as surely curl did not set that option on the
connection.
Firewall config could also affect this.
--Michael
--
You received this message because
On 1 February 2011 23:01, Chris Gallagher li...@ruby-forum.com wrote:
Hi Fred,
Please quote the previous message so that the thread is easier to follow.
So that means in my user model I can associate by using the following?
belongs_to :other_user, :class_name = UserMailbox
But what about
Sure did:
class User ActiveRecord::Base
has_many :user_mailboxes
belongs_to :other_user, :class_name = UserMailbox
end
class UserMailbox ActiveRecord::Base
belongs_to :user
belongs_to :other_user, :class_name = User
end
Very helpful guys,
Thanks,
Chris
--
Posted via
Hi! I'm trying run my app on Passenger server but when I make rake
db:migrate I get the error:
rake aborted!
Cipher is not a module
I googled it and get
http://serverfault.com/questions/114725/openssl-support-for-ruby-cipher-is-not-a-module-typeerror
but I don't have sudo privileges...
So, any
On Feb 2, 2:00 pm, Slava Mikerin mikerin.sl...@gmail.com wrote:
I want is to set
default_scope :order = 'created_at ASC'
for all models on default. How is that done?
I might be wrong but unless you don't have IDs in your tables what you
are trying to do is equivalent to leaving things as they
I found the problem, although I'm still baffled as to why it was
occurring at all.
My session (using active_record_store) was storing the User object of
the logged in user. Any page that access that object experienced the 3
second delay. Any page that didn't access that object loaded almost
what is the syntax for getting the selected value in select_tag
for example : in model
@customer = Customer.find(:all).map{ |i| i.name}
redirect_to :action = 'show',:name=@customer
i given like this to get the value from database and for view
%= select_tag (:name,
ah ah ? Anyon netty a rails app behind apache?
--
You received this message because you are subscribed to the Google Groups Ruby on
Rails: Talk group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to
if you name your partial
partials/rows/asset
then you can use
:object = Asset.new
instead of :locals = ...
On Wed, Feb 2, 2011 at 11:22 AM, Edward Stembler li...@ruby-forum.com wrote:
Edward Stembler wrote in post #979228:
Now I need to figure out how to get it working with jQuery since
2011/2/1 Albert Català li...@ruby-forum.com:
Hello,
I whish configure logger, adding a prefix in all logger.error(..), a
prefix like ERROR--, to be able, then to search in
log file, easily.
And to do that I had the idea of reopen Logger class, like this:
- In a file placed
I told you: it is a method of capistrano.
set sets the value, fetch gets it
Follow my first link and read the chapter Variables ...
Or look here
https://github.com/capistrano/capistrano/wiki/2.x-DSL-Configuration-Variables-Fetch
Or look here
2011/2/1 Albert Català li...@ruby-forum.com:
Hello,
I whish configure logger, adding a prefix in all logger.error(..), a
prefix like ERROR--, to be able, then to search in
log file, easily.
And to do that I had the idea of reopen Logger class, like this:
- In a file placed
Hi Priya
I am also facing the same problem
have u found the solution...
If found...plz share it or send drop mail on
'erharish43.ma...@gmail.com'
i'll be very thankful to u
Regards, Harish
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are
I did too, but I think I have received these for the past couple of months.
On Wed, Feb 2, 2011 at 8:53 AM, David Kahn d...@structuralartistry.comwrote:
On Wed, Feb 2, 2011 at 8:26 AM, Walter Lee Davis wa...@wdstudio.comwrote:
I set up a Heroku account years ago, and put up a stupid
Dear Partner,
Please find our Urgent Direct Client Requirement and send me some matching
profile ASAP along with the rate and contact details.
Position / Req. ID :
Ruby on Rails Developer ( Front End/ Back End ) / Boston, MA
Primary Skills :
Ruby on Rails, Java, Web Environment
I am getting the error uninitialized constant for the vestal_versions
gem when I build it from a gemspec file and install it.
I need to store gems locally at a client site. I am using bundle
package for most of my gems but the vestal_versions gem comes from a
git repository and I can not included
Hi selva,
If you want to set a default value for a select tag using the select_tag
helper, you cant.
Try using select instead,
%= select :foo, :name, @customer.collect(:name), {:selected = @
customer.last.name}, {:name = 'name', :id = 'name'} %
On Thu, Feb 3, 2011 at 2:39 PM, selva raj
77 matches
Mail list logo