Hi all,
I am using Expurrel gem to get the original url from the short url
for all the url shortener services.It works good on the script/console
and irb but it is throughing me error like URI::InvalidURIError in
KeywordsController#create in my application after giving some no. of
original url
We are stuck with following error thrown at us by passenger:
git://github.com/odorcicd/authlogic.git (at rails3) is not checked out.
Please run `bundle install` (Bundler::PathError)
We have exactly the same problem with slightly different server config.
Somehow Bundler, Passenger or whatever
We have seen a number of reports of this error (git://git/repo (at
branch) is not checked out. Please run `bundle install`. This is a
serious issue and we're actively investigating it (by actively, I mean
it's what we're going to be working on tomorrow).
Please hang on. We should have another RC
On 29 July 2010 04:19, Zhenning Guan li...@ruby-forum.com wrote:
the HTML.ERB like this, and then it generate a html, it. the table
indent not it shoud be, and the second tr also indent not the noraml.
why it generate a html like that?
Your Ruby code is indented (it has some whitepace infront)
Tushar Gandhi wrote:
Hi,
I am doing a google map integration using geokit and YM4R/GM plugin.
Whenever I am passing the area name the it is ,marking that in google
map properly.
But my client wants whenever user adds the IT Companies in India then
GMap should mark all locations of india
Hello,
One of my friends paid a fair share of money for a website and the
company that developed his site just left him and told him they would
no longer host his site because he didn't want to pay $150/mo for
hosting.
I have never worked with Ruby before, but manage to transfer his
website to
Thankyou Fernando and Marnen!
I forget fixtures.
I will learn Machinist.
Thankyou very much!
--
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
Hello Friends,
I am using rspec for testing my model, and I have used callbacks in my model
as things are working as expected on the front end. but when I try to test
the application it throws an error.
My code.
*
*
class MyModel ActiveRecord::Base
after_create CreateProfileCallBacks
end
You can alwaus just do the following:
td id=descPlaceholder
--
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
Hi,
Is there a way to update a column?
Here's what I mean:
I have a column name item in table products of type integer
Now I want to update the column to have the option :null = false
So far, the only way I have found is to remove it and re-add it, but
obviously that is quite dumb.
--
You
Have you tried change_column in a migration?
http://api.rubyonrails.org/classes/ActiveRecord/Migration.html
--
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
Prachi,
I can't help you there, I've used memcache only for caching HTML fragments.
There are several fine tutorials on using memcache on the Web, including using
it to cache database records. Try railscasts.com, their screencasts are
excellent.
Jeffrey
Quoting Prachi Tripathi
Marnen Laibow-Koser wrote:
Pale Horse wrote:
[...]
Installing the plugin from that port causes an error:
script/plugin install http://github.com/queso/ym4r-gm
+ ./opensearch.xml
Plugin not found: [http://github.com/queso/ym4r-gm;]
You may need to tack .git on to the end of that URL.
My ror app need a query builder UI + backend hooks to generate simple
reports (excel-like). Anybody know a gem/plugin to do so?
Regards.
--
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
I'm reading Dive into html5 and in
http://diveintohtml5.org/semantics.html#encoding
, it says every page should contain meta charset=utf-8 /,
otherwise it's subject to security vulnerabilities (http://
code.google.com/p/doctype/wiki/ArticleUtf7). I don't see meta
charset=utf-8 / being generated
On Jul 29, 10:08 am, johnny jklem...@gmail.com wrote:
I'm reading Dive into html5 and
inhttp://diveintohtml5.org/semantics.html#encoding
, it says every page should contain meta charset=utf-8 /,
otherwise it's subject to security vulnerabilities (http://
I noticed some strange behaviour with connection_pool.with_connection
and it's probably because I am not understanding the proper usage. If
I call with_connection, it seems to me that the connection within the
block is not used with the ActiveRecord methods. First a simple ==
comparison.
On Jul 29, 12:05 am, Simon D simpr...@gmail.com wrote:
Hello,
One of my friends paid a fair share of money for a website and the
company that developed his site just left him and told him they would
no longer host his site because he didn't want to pay $150/mo for
hosting.
I have never
Thanks.
I was under the impression that change_column was only for renaming.
On Jul 29, 9:19 am, Ar Chron li...@ruby-forum.com wrote:
Have you tried change_column in a migration?
http://api.rubyonrails.org/classes/ActiveRecord/Migration.html
--
Posted viahttp://www.ruby-forum.com/.
--
Why am I encountering this situation?
I'm using the following code in my article form:
% form_for [:admin, @article] do |f| %
%= f.error_messages %
p
%= f.label Tags %br /
%= select_tag tags, optionValue 1/optionoptionValue
2/optionoptionValue 3/optionoptionValue
In my functional tests it was convenient to use:
@controller.expects(:admin?).at_least_once.returns(true)
to simulate requests which come from an admin user. But it seems that in
Rails 2.3.8 it's gone away. What replaces it now?
Up, it's important. Nobody uses functional tests here?
--
Glad that helped, and thanks for the simpler script! I'll definitely
try it on my deploy, too.
--
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
Version hell...I have the latest version of gems installed and gems -v
proves this, but somewhere an old copy is hanging about - how do I get
rid of this old version? This is driving me nuts!
I seem to be getting conflicted installations of gems:
For example
$ ruby script/generate model
On Thu, Jul 29, 2010 at 12:46 PM, Dis Tec li...@ruby-forum.com wrote:
Version hell...I have the latest version of gems installed and gems -v
proves this, but somewhere an old copy is hanging about - how do I get
rid of this old version? This is driving me nuts!
I seem to be getting
You installed Rubygems using apt-get which is... a very bad idea!
You should NEVER do this :D.
Just install rubygems using the source.
Nicolas Blanco
http://www.nicolasblanco.fr
http://twitter.com/slainer68
Dis Tec wrote:
Version hell...I have the latest version of gems installed and gems -v
Did you install anything by mistake in ~/.gem ?
--
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
Fernando Perez wrote:
Did you install anything by mistake in ~/.gem ?
yep - that is all deleted now.
--
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
Ben Johnson wrote:
I have been looking all through the documentation and can't find
anything to display the time in 12 hours format with an AM/PM option. Is
there an option for datetime_select to do this? Or a plugin?
Thanks!
Ben,
Any luck on a solution to your post? I'm also having the
Thanks - I have now update the version.That seems to have done the
trick!
Thanks!
Leonardo Mateo wrote:
On Thu, Jul 29, 2010 at 12:46 PM, Dis Tec li...@ruby-forum.com wrote:
$ ruby script/generate model product
br...@ubuntu:~/RoR/Apps/OpenBenefit/depot$ gem -v
1.3.5
The weird thing is gem
Now need to get MySQL installed. I am having the following trouble
installing
sudo gem install mysql -- --with-mysql-config=/usr/bin/mysql_config
ERROR: Error installing mysql:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.8 extconf.rb
Car.all.order(make) generates an error like undefined method `order'
for #Array:0x7fd314476e38
Is this a bug? It seems that it should work. Rails 3.0.0rc.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk
On Jul 29, 3:53 pm, Fernando Perez li...@ruby-forum.com wrote:
In my functional tests it was convenient to use:
@controller.expects(:admin?).at_least_once.returns(true)
to simulate requests which come from an admin user. But it seems that in
Rails 2.3.8 it's gone away. What replaces it
mysql_config exists and mysql is up and running! No idea why this
sometimes works and sometimes breaks. Before I managed this fine. Now
its not working and I cannot re-install the mysql gems!
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to
On Thu, Jul 29, 2010 at 11:15 AM, Mark Horrocks li...@ruby-forum.com wrote:
Car.all.order(make) generates an error like undefined method `order'
for #Array:0x7fd314476e38
Is this a bug? It seems that it should work. Rails 3.0.0rc.
Car.order(make).all
--
Greg Donald
destiney.com |
Hi Fred,
Here is some code:
--
require 'test_helper'
class Admin::OrdersControllerTest ActionController::TestCase
def setup
@controller = Admin::OrdersController.new
@request= ActionController::TestRequest.new
@response = ActionController::TestResponse.new
Appreciate this is a path well travelled probably.
What's the best way of to deal with gender.
i.e. a Person is either Male or Female (generally and fot my purposes
I'll stick with that rule).
So is it best to go Person with an attribute gender, or, I guess it's
best to do something like this -
On Jul 29, 5:16 pm, Dis Tec li...@ruby-forum.com wrote:
mysql_config exists and mysql is up and running! No idea why this
sometimes works and sometimes breaks. Before I managed this fine. Now
its not working and I cannot re-install the mysql gems!
it's saying that you're missing mkmf, which
On Jul 29, 3:53 pm, Pale Horse li...@ruby-forum.com wrote:
Why am I encountering this situation?
I'm using the following code in my article form:
% form_for [:admin, @article] do |f| %
%= f.error_messages %
p
%= f.label Tags %br /
%= select_tag tags, optionValue
Now need to get MySQL installed. I am having the following trouble
installing
sudo gem install mysql -- --with-mysql-config=/usr/bin/mysql_config
ERROR: Error installing mysql:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.8 extconf.rb --with-mysql-config=/usr/bin/mysql_config
Just speculating, but what if we rephrase the problem: the User
after_save callbacks are expensive.
Would it be possible to move whatever attributes the callbacks modify
to another model?
your User.rb after_save callbacks to another model?
On Jul 27, 8:06 pm, badnaam asitkmis...@gmail.com wrote:
Greg Donald wrote:
Car.order(make).all
--
Greg Donald
destiney.com | gregdonald.com
Thank you! :) It seems odd considering that Car.where(blah
blah).order('make') works.
Mark Horrocks
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the
Might just be me, but I've always thought of gender as an attribute of a
person in your context.
I'm not sure where a gender model comes into all of this, but you may be
thinking of something I'm not.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are
To populate from a static array or from AR I had the same quandry and
ended up doing it the 'rails' way as you describe below. Although as you
said, it is such a static thing that might as well use a constant array. The
other question is to store M/F in Person.gender or store an integer.
On Thu, Jul 29, 2010 at 11:28 AM, Dis Tec li...@ruby-forum.com wrote:
/usr/bin/ruby1.8 extconf.rb --with-mysql-config=/usr/bin/mysql_config
extconf.rb:10:in `require': no such file to load -- mkmf (LoadError)
from extconf.rb:10
This error means you are missing ruby development libraries
Thanks chaps.
It's now got me thinking. This stuff is not as easy as it looks. Ive
given up on gender when I realised that a name can belong to both
genders!
In English my app is a baby name chooser
A baby can have many proposed names but only one surname.
A name can be of many types,
David Kahn wrote:
To populate from a static array or from AR I had the same quandry
According to the way I think, a model object is something you CURD
(create, update, read, or delete). Unless you're God you're not going to
be creating or deleting genders.
I'd go with a static
On Thu, 2010-07-29 at 19:01 +0200, Ar Chron wrote:
Might just be me, but I've always thought of gender as an attribute of a
person in your context.
It's not just you.
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To post to this
Mark Horrocks wrote:
Greg Donald wrote:
Car.order(make).all
--
Greg Donald
destiney.com | gregdonald.com
Thank you! :) It seems odd considering that Car.where(blah
blah).order('make') works.
If I understand it right you don't need the all part at all:
Car.order(make)
The way I
ERROR: Error installing mysql:
ERROR: Failed to build gem native extension.
sudo aptitude install libmysqlclient15-dev
(or whatever version the libmysqlclient is at for your system)
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the
Hi,
I have a form that contains a file field.
Since the file can be rather big, I would like to display a progress bar
after the user clicks the submit button on the page, so he can see the
progress of the upload.
I've no idea how to do that, so I search on Google but lots of plugins
seem very
On 29 July 2010 15:42, Eric Yen e...@ericyen.com wrote:
Thanks.
I was under the impression that change_column was only for renaming.
Please don't top post on this list. Thanks.
rename_column is for renaming, change_column is for changing the
attributes of the col.
Column
On Jul 29, 9:19
bingo bob wrote:
Thanks chaps.
It's now got me thinking. This stuff is not as easy as it looks. Ive
given up on gender when I realised that a name can belong to both
genders!
In English my app is a baby name chooser
A baby can have many proposed names but only one surname.
A name can be
On Jul 27, 8:22 pm, Fearless Fool li...@ruby-forum.com wrote:
Craig White wrote:
On Wed, 2010-07-28 at 01:27 +0200, Fearless Fool wrote:
Thanks!
nobody can PM you since you didn't give a PM address
Craig
Craig:
Try clicking on the fearless_fool link at the top of the
in FF 3.6 it's more or less easy. Search for firefox drag drop 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 post to this group, send email to rubyonrails-t...@googlegroups.com.
On Jul 29, 5:23 pm, Fernando Perez li...@ruby-forum.
class Admin::OrdersControllerTest ActionController::TestCase
def setup
@controller = Admin::OrdersController.new
@request = ActionController::TestRequest.new
@response = ActionController::TestResponse.new
I would use the gender attribute instead of creating a new entity in my
model... But it depends on your model design
-original message-
Subject: [Rails] how to deal with gender
From: bingo bob li...@ruby-forum.com
Date: 07/29/2010 10:25
Appreciate this is a path well travelled probably.
What's
The log entry you have posted is for a successful attempt, which did
happen under certain circumstances while I was fiddling with your
site. If the error is making it to the logs you should see an entry
that returns code 500 rather than '302 Found'. With any luck it is
accompanied by a large stack
Hello,
i am trying to set a default scope so I can pass a proc as argument. This is
the code:
default_scope lambda { where(language = ?, I18n.locale.to_s) }
When I try to get the values, the following error is raised:
NoMethodError: undefined method `includes_values' for #Proc:0xb6d85b9c
Fernando Perez wrote:
in FF 3.6 it's more or less easy. Search for firefox drag drop file
upload
Thanks for your reply.
Well, in the best world, customers would all use FF (and linux and ogg
format :p).
Of course, most of them prefer Internet Explorer :S
In any case, I need solutions that
Hi,
I'm hitting a wall in my ruby knowledge. When I have:
before_validation { |object| object.permalink =
object.title.parameterize }
What's that { |object| ...} thing? It's a block, ok, but when does it
get executed? When and where does object come from?
I tried digging in the Rails source
Look, let's just point out the elephant in the room. Most people think
Jeremy is kind of a dick. He wrote a dickish post. We're all still
alive. Get over it.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups Ruby
on
In Ruby on Rails, why
= render :json = array_data
shows nothing (as seen in Firebug, the GET in the console), but
- response.content_type = application/json
= render :text = array_data.to_json
shows the data array?
--
Posted via http://www.ruby-forum.com/.
--
You received this
I'm trying to render a list of div's with ids item1, item2, item3,
etc..
Trying to do it like this:
% for i in 0...@items.size %
div id=item%= i %
.. blah blah ..
/div
% end %
Pretty sure the syntax is wrong. I couldn't find the answer after
googling for a bit - perhaps I'm too new and dont
% @items.each do |item| % div class=item%= item.id %
%= item.record-name %
/div % end %
I think it goes model.method action |table| tuple.relvar.
I took the logic from here
http://guides.rails.info/getting_started.html#rest
http://guides.rails.info/getting_started.html#restand applied the
Thanks but that didn't help. I've followed the documentation here:
http://api.rails.info/classes/ActionController/HttpAuthentication/Basic.html#M000214
I don't understand why authorize broke, but nothing else I try seems
to work either. Help is appriciated.
On Jul 8, 4:57 pm, Bala Paranj
I should probably mention that this is with rails3 and the file you
refer to doesn't exist in rails3
On Jul 29, 8:27 pm, anywho eydai...@gmail.com wrote:
Thanks but that didn't help. I've followed the documentation here:
http://api.rails.info/classes/ActionController/HttpAuthentication/Bas...
Robert Walker wrote:
Car.order(make)
The way I understand it all is a special method designed to get all
records in a similar way as all was in the old syntax.
In other words:
Car.find(:all, :order = 'make') not the same as Car.all
Ah yes, that would take advantage of the lazy
Found the answer. I was making it much too complicated..
$(search).focus();
did just fine
Bob
On Jul 23, 6:15 pm, Bob Smith bsm...@gmail.com wrote:
I'm trying to set the focus to the first (and only} field on a search
form and having no luck.
From searching with google, I came up with:
here we go... I filed this ticket:
https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/5246
On Jul 29, 8:31 pm, anywho eydai...@gmail.com wrote:
I should probably mention that this is with rails3 and the file you
refer to doesn't exist in rails3
On Jul 29, 8:27 pm, anywho
Hello Matt,
I have pushed CUBRID gem to the Rubygems.org, so now you can install
Ruby driver for CUBRID using gem install cubrid command. Right now I
have tested with Ruby 1.8.7, later today I will test for 1.9.1 and
push the gem. If you have any questions, I will be glad to know your
opinion.
Friends any clue still struggling. :(
On Thu, Jul 29, 2010 at 6:04 PM, Abhishek shukla bettera...@gmail.comwrote:
Hello Friends,
I am using rspec for testing my model, and I have used callbacks in my
model as things are working as expected on the front end. but when I try to
test the
anObjectNotAmethodStringOrBlock=CreateProfileCallBacks.new
On Thu, Jul 29, 2010 at 10:27 PM, Abhishek shukla bettera...@gmail.comwrote:
Friends any clue still struggling. :(
On Thu, Jul 29, 2010 at 6:04 PM, Abhishek shukla bettera...@gmail.comwrote:
Hello Friends,
I am using rspec for
72 matches
Mail list logo