Check your Gem sources with: `gem sources` and remove
http://gems.rubyonrails.org
if it's listed.
The main rubyonrails.org domain is down. ihth
--arnie riquelme
On Apr 20, 8:58 am, Stacy Vlasits li...@ruby-forum.com wrote:
%USERPROFILE%\Documents\Programs\rails_apps\history gem update rails
when seeing
ERROR: While executing gem ... (ArgumentError)
uri scheme is invalid
try looking into your gem sources
run
gem sources
and then remove all weird or unnecessary sources
until you are left with only http://gems.rubyforge.org
then try to install or update a gem and you'll
When I started using Rails around version 0.9, FastCGI was considered
one of the best ways to deploy Rails. That went out of fashion but I
don't know why. Then Mongrel was the hot thing and I've heard about
Phusion Passenger.
What is wrong with deploying Rails with FastCGI? Was it just some sort
Try doing a gem sources and see if one of your sources is
http://gems.rubyonrails.org
If it is, remove it with gem sources --remove http://gems.rubyonrails.org;.
I had the same problem today, I think it is related to the issue that
rubyonrails.org is having with their domain name.
~W
On Apr 20,
Tech Advisor to Unusual Social Venture Startup
This position is for an unusual Social Venture Internet Startup
which will be using a robust conceptual advance web application to
help the 95% of unhappy marriages/ couples in general in the Western
Hemisphere who cannot afford or will not trust a
http://railsapi.com is perfect
2010/4/21 Wang Li fox...@gmail.com
does anyone know the ip of rubyonrails.org?
then we could set it in our hosts file and visit the site properly
or any docs mirror sites? I want docs...
2010/4/21 Vikrant Chaudhary nas...@gmail.com
bump.
On Apr 21,
does anyone know the ip of rubyonrails.org?
then we could set it in our hosts file and visit the site properly
or any docs mirror sites? I want docs...
2010/4/21 Vikrant Chaudhary nas...@gmail.com
bump.
On Apr 21, 1:50 am, Dieter Lunn coder2...@gmail.com wrote:
The registrar is being a
VTD-XML 2.8 has been released. Please visit
https://sourceforge.net/projects/vtd-xml/files/
to download the latest version.
a.. Expansion of Core VTD-XML API
a.. VTDGen adds support for capturing white spaces
b.. VTDNav adds support for suport for getContentFragment(),
recoverNode()
On Apr 21, 3:03 am, Sven Svenson svensvens...@gmail.com wrote:
When I started using Rails around version 0.9, FastCGI was considered
one of the best ways to deploy Rails. That went out of fashion but I
don't know why. Then Mongrel was the hot thing and I've heard about
Phusion Passenger.
On Apr 21, 12:28 am, Philip Hallstrom phi...@pjkh.com wrote:
Go here and download whatever set of rdocs you need... then you don't
have to worry about the official site anymore :)
or generate the docs locally (rake doc:rails) like that you don't have
to worry about having an internet
Hi Guys
Thanks for the ideas. Some good stuff here to look into.
After thinking about this a bit more I'd like to slightly rephrase my
question:
Is it possible to create variables in the rails environment that persist
globally - not as sessions - that would be too much porting of
information
On 21 April 2010 05:38, Bob Smith bsm...@gmail.com wrote:
Is there any way to use select inside a hidden div block with a model
object for the select items ? I have the block showing and hiding OK
with observe_field, but the variable I'm using to see whether to show/
hide seems to be the only
Pardon if this has been asked a dozen times before (a quick search on
the forum didn't turn up anything obvious):
For purposes of really understanding ActiveRecord, is there an easy way
to watch the SQL generated calls to ActiveRecord.find() etc? I'm
running in the console -- not under a web
On 21 April 2010 05:46, Bob Smith bsm...@gmail.com wrote:
Try using params instead of variables. The variables lose scope when
changing between views/controllers and once that happens, the value
becomes nil. Instead of
@show_new_expanse_page = true try
params['new_expense_page'] = true
and
On Apr 21, 8:30 am, Fearless Fool li...@ruby-forum.com wrote:
Pardon if this has been asked a dozen times before (a quick search on
the forum didn't turn up anything obvious):
For purposes of really understanding ActiveRecord, is there an easy way
to watch the SQL generated calls to
David,
I've recently been doing a lot of apps that require users being logged
in and different users having different permissions in the apps. If an
entire controller requires a user being logged in, set a before
filter. If your app allows non logged in visitors or you want all of
your admin
Pito,
I'm going to leave the entire db version control question for someone
else, but to answer your question about the schema.rb, if you run a
migration, it will change the structure of the database, which is what
schema.rb keeps track of. Rails will rewrite that file every for every
migration
Hi Thomas,
How might I clean this up? My ideal would be for each controller to be
able to call title setting its part of the title, and for individual
actions to manually prepend their title part:
You may have a look to this screencast from Ryan Bates :
Hi,
If I should believe the things I find on the internet, this is the
correct approach for form labels:
---
en:
activerecord:
attributes:
user:
last_name: Surname
---
And then:
% form_for @user do |f| %
%= f.label :last_name %
%= f.text_field :last_name %
% end
Hi,
I was wondering if anyone is familiar with restful_authentication
plugin.
I have an app which uses restful_authentication and I am creating a
new app which will exist at a seperate url. However, I would like
users who have registered on app1 to be able to log into app2 without
having to
Why not use the user table in the old DB for everything instead of
duplicating the information in both tables?
On Apr 21, 10:01 am, DanC d.m.coleg...@durham.ac.uk wrote:
Hi,
I was wondering if anyone is familiar with restful_authentication
plugin.
I have an app which uses
HI Sharagoz,
How would I do this?
At a guess, I could probably use establish_connection (point to app1
DB) in the User.rb and Permission.rb model files of app2
Is there another way?
Thanks for the quick response,
Dan
On 21 Apr, 09:05, Sharagoz shara...@gmail.com wrote:
Why not use the user
% if current_user %
%= link_to Create a new BLAH, new_blah_path %
% end %
To reduce this to one line you can do
%= link_to(Create a new BLAH, new_blah_path) If(currrent_user) %
Authorization with something like CanCan or Declarative Authorization
is still going to require an if-test in the view
Frederick Cheung wrote:
It should still all go into the log file (in development mode at
least).
Fred
You're right as always! :)
Somehow, I got my script/console session in a state where it wasn't
logging to log/development.log (not even Rails.logger.debug() was
working). I quit and
Add a new DB connection in database.yml
other_db_development:
adapter: mysql
database: other_db_development
(etc)
Then in User.rb make it use that connection like so:
class User ActiveRecord::Base
establish_connection(:other_db_development)
end
Every CRUD operation on the User model will
that works, thanks!
On Apr 14, 5:38 pm, Abhinav Saxena abhinav...@gmail.com wrote:
You can do like this using all? method
accepts_nested_attributes_for :questions, :allow_destroy = true,
:reject_if = lambda { |attrs| attrs.all? { |k, v| v.blank?}}
--
Thanks,
I have still not found a solution to this. Does anyone have an idea?
On Apr 14, 6:47 pm, ES emsto...@gmail.com wrote:
I'm running Rails 2.3.5
On Apr 14, 2:34 pm, Mikel Lindsaar raasd...@gmail.com wrote:
On 14, April 2010, at 14 Apr 19:58, ES wrote:
I have no problems displaying data
I think it could be browser issue. Check your addons in your browsers or try
different clean browsers to see the issue occurring.
Maybe desktop has been configured to ascii language editor. Try in
a different computer.
Make sure that Database columns are utf8 compatible in the database.
how can i apply for this job
and can i do this remotly?
On Wed, Apr 21, 2010 at 10:06 AM, eCoupleCoach ecoupleco...@gmail.comwrote:
Tech Advisor to Unusual Social Venture Startup
This position is for an unusual Social Venture Internet Startup
which will be using a robust conceptual advance
???
--
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
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options,
Yes. Yesterday called, they want their news back...
http://twitter.com/#search?q=rubyonrails.org
--
Andy Jeffries
http://andyjeffries.co.uk/ #rubyonrails #mysql #jquery
Registered address: 64 Sish Lane, Stevenage, Herts, SG1 3LS
Company number: 5452840
On 21 April 2010 10:09, Amala
Yep, happened last year as well. The site is available at
rubyonrails.com until the issue is resolved. DHH got some tweets about
it:
http://twitter.com/dhh
On Apr 21, 11:09 am, Amala Singh amalasi...@gmail.com wrote:
???
--
You received this message because you are subscribed to the Google
http://www.railsbrain.com/api/rails-1.2.3/doc/index.html
http://www.railsapi.com/
For now
On Wed, Apr 21, 2010 at 2:45 PM, Andy Jeffries andyjeffr...@gmail.comwrote:
Yes. Yesterday called, they want their news back...
http://twitter.com/#search?q=rubyonrails.org
--
Andy Jeffries
For the label problem I have been using the I18n-label plugin in the
past:
http://github.com/iain/i18n_label
This functionality may be integrated into the latest version of I18n,
I dont know.
On Apr 21, 9:50 am, Alexandre Friquet a...@infopiiaf.fr wrote:
Hi,
If I should believe the things
Hi,
Need script to convert postgres db dump and restore to mysql.
Please help me.
Thanks in advance.
--
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
Hmmm, thank you both. A fix for the labels appears to be in the latest
version of the Rails 2-3-stable branch. Is there any way to integrate
that version of Rails into my application? Please mind that I won't
have access to the Rails installation on the target server, so I need
to overwrite the
Hi,
We have a potential requirement to convert our existing rails app to run
on DB2. I've had a bit of a look around and there is a DB2 active record
gem. Does anyone have any experience with this? Is it a robust solution
(if not, I can push back at the powers that be)?
Thanks
Simon
--
I have an in house app that has been running for several years, with
regular enhancements. Just recently I have noticed that on windows
clients, firefox 3.6 is no longer caching any css or js pages.
Watching the pages load in firebug, they are all showing as :
304 Not modified
but are re-loading
Hi,
I have a topic model which has_many replies.
On my topic index page I would like to be able to sort the topics by
the number of replies.
In my topic model I have defined
Topic.rb
...
has_many :replies
def total_replies
replies.count
end
And in my controller I have tried
I think that's you could use the counter_cache feature:
class AddReplyCount ActiveRecord::Migration
def self.up
add_column :topics, :replies_count, :integer, :default = 0
Project.reset_column_information
Topic.find(:all).each do |t|
t.update_attribute(:replies_count,
On 21 April 2010 12:10, DanC d.m.coleg...@durham.ac.uk wrote:
@topics = Topic.find(:all, :conditions = [forum_id = ?,
@forum.id], :order = total_replies DESC)
but I get the error Mcolumn total_replies does not exist
I know the column doesn't exist, but the question is, how can I get
the
I have a total of 30 Project thumbnails that I'm planning to render in
groups of 8 in my index page. I'm going to put a next button that
will replace the present group with the next 8 thumbnails, and so on
until one gets to the final group of thumbnails. My codes are working
but only for the first
Errata:
Replace % form_remote_tag :url = {:action = next, :remaining =
@everything} do % with % form_remote_tag :url = {:action =
next, :remaining = @remaining} do %.
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To post to this group,
Matt,
Thanks for a great summary; very helpful, and thanks to the rest of the
list for always providing insightful comments and solutions to problems.
Great!!
- Pito
Matt wrote:
Pito,
I'm going to leave the entire db version control question for someone
else, but to answer your question
Hi,
I would like to develop a paying system like Groupon.com does. For those
who don't know about groupon, you can purchase coupon only if the coupon
as been sold n number of times. But when you pay you are charged only
if the limit number of people has been reached.
This means then save somehow
Hai friends,
I hav two models related with habtm
class User ActiveRecord::Base
has_and_belongs_to_many :station,
:join_table = stations_users,
:foreign_key = user_id,
:association_foreign_key = station_id
class
Hai friends,
I hav two models related with habtm
class User ActiveRecord::Base
has_and_belongs_to_many :station,
:join_table = stations_users,
:foreign_key = user_id,
:association_foreign_key = station_id
class
I am writing a rails script that I need to run continuosly. It
basiclly scans the a particular table in my DB and makes queries to an
outside service and updates the table as needed. I would like to keep
the script constatnly running run. If I write the script as a runner,
is there a way to do
Any idea on how long it takes to recover from this annual screw-up?
Eyecandy and grublinks are no substitute for a productive community
site.
Rick
On Apr 21, 2:13 am, Frederick Cheung frederick.che...@gmail.com
wrote:
On Apr 21, 12:28 am, Philip Hallstrom phi...@pjkh.com wrote:
Go here and
The questions and alternatives are going to be stored in the database,
right?
So basically somebody like a teacher can create a quiz that has many
questions, which has many alternatives, and the students take a quiz
where he responds to questions by picking alternatives or writing an
essay.
What
By continuously do you mean 'scan table, scan table, scan table ...' or
'scan table, wait for 10 minutes, repeat'
If it is the latter then you could simply set up a cron job to run every few
minutes.
Here's some details on how you might do it
Dear all,
Is it possible to generate a breadcrumb from Rails controller without
using any additional plugin? What methods should I look into to be
able to generate breadcrumb in Rails?
Thank you very much in advance for your assistance.
Kind regards,
Joshua
--
http://twitter.com/scrum8
--
Thanks Wayne and Arnie,
That did it.
artixan wrote:
Check your Gem sources with: `gem sources` and remove
http://gems.rubyonrails.org
if it's listed.
The main rubyonrails.org domain is down. ihth
--arnie riquelme
--
Posted via http://www.ruby-forum.com/.
--
You received this message
I want to display all the projects in which a given team has a
product. The following code works, but isn't there a better way?
Railsier? Better Practice?
#Models#
class Team ActiveRecord::Base
has_many :products
has_many :funding_sources, :through=:products
end
class Product
Hi,
I have a Page controller. I use it as a tree structure to manage pages
in a CMS. Is it possible to map an address /pages/1 to another
controller, say /forum ?
I need it because not every page should be a CMS page but sometimes it
should display another module, a forum, a gallery... etc...
This is a sign of ROR losing credibility. It is such a shame that it has
happened to
a wonderful innovation. Why they are going for RoR3 and so on, if they
cannot
maintain the existing things better?
On 21 April 2010 13:18, Rick richard.t.ll...@gmail.com wrote:
Any idea on how long it takes to
In ruby how to change photo size from 300k - 100k?
have any methods?
--
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
imagemagic
-quality
On Apr 21, 2010, at 5:18 PM, Chandle WEi wrote:
In ruby how to change photo size from 300k - 100k?
have any methods?
--
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
Well, this is a little better.
.
.
.
else
fundin...@team.funding_sources
project_ids = fundings.reduce([]){|items, funding|
items.push(funding.project_id)}
@projects = Project.find(:all, :conditions=[id IN (?),
project_ids.uniq])
end
.
.
.
So, now the problem becomes: how
jko170 wrote:
I might need to integrate one with my Rails app.
We have built a web pos system using Ruby called ShopKeep.com. Rails is
turning out to be very good framework for this project. We will
officially launch in May but we already have customers up and running
using it. Our API
Actually, I am interested in the former. That is, scan table and once
it is done start form the top again and scan again without any delay.
Thanks for the resource.
On Apr 21, 8:25 am, Peter Hickman peterhickman...@googlemail.com
wrote:
By continuously do you mean 'scan table, scan table, scan
its that true brother ? amazing,.. i'll check soon..
--
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
On 21 Apr 2010, at 14:56, Amala Singh wrote:
This is a sign of ROR losing credibility. It is such a shame that it
has happened to
a wonderful innovation. Why they are going for RoR3 and so on, if
they cannot
maintain the existing things better?
What a pointless remark. 37signals paid the
I got a simple iteration going on
% @user.sender.each do |sender| %
...
% end %
Can I fetch and display for example only 2 items from my database insted
of all 4 of them ?
Is there a better way to do this ?
I could use will_paginate on the iteration (per_page = 2) but I don`t
want the links to
Rubyists:
Friday is the last day for normal registration to the Red Dirt
RubyConf.
We have everything locked-in and it's going to be an awesome event.
Here are just a handful of the planned highlights:
* Keynote speeches from Jim Weirich and Dave Thomas
* Our themed program including Rails 3,
Pointless remark? Ha. Cant this be avoided for the second time if not for
the first time?
I dont still believe this it could happen to ROR.
On 21 April 2010 15:26, Peter De Berdt peter.de.be...@pandora.be wrote:
On 21 Apr 2010, at 14:56, Amala Singh wrote:
This is a sign of ROR losing
On Wed, Apr 21, 2010 at 5:05 AM, Greg Ma li...@ruby-forum.com wrote:
But when you pay you are charged only
if the limit number of people has been reached.
This means then save somehow your credit card number somewhere and
charged you when the sell is done.
My question is how, where do they
limiting the Find method in the controller.
eg:
@user = User.find(:all, :limit = 2)
Hope it helps!
On Apr 21, 11:27 pm, Babos Catalin li...@ruby-forum.com wrote:
I got a simple iteration going on
% @user.sender.each do |sender| %
...
% end %
Can I fetch and display for example only 2
On Apr 21, 7:17 am, tashfeen.ekram tashfeen.ek...@gmail.com wrote:
Actually, I am interested in the former. That is, scan table and once
it is done start form the top again and scan again without any delay.
http://cr.yp.to/daemontools.html should help (on Unix).
Your Ruby script has an
Pointless remark? Ha. Cant this be avoided for the second time if not for
the first time?
I dont still believe this it could happen to ROR.
it's not the freaking rails framework man. it's the domain name
registrar.
On Apr 21, 7:39 am, Amala Singh amalasi...@gmail.com wrote:
Pointless remark?
DHH just tweeted saying that the domain is back up. Waiting for all the DNS
servers to cache it. And the domain is registered for 10 years.
So there you go Amala. Happy now :)
On Wed, Apr 21, 2010 at 8:31 PM, Moo janec...@gmail.com wrote:
Pointless remark? Ha. Cant this be avoided for the
Thanks, that seems to be the right idea. Here's what I ultimately
settled on...the following results in Home | Dashboard | PNC for a
request to DashboardController#index.
class ApplicationController ActionController::Base
def self.title item
before_filter do |controller|
Good news. Thank you.
On 21 April 2010 16:05, Shiv Narayan Gautam s.n.gau...@gmail.com wrote:
DHH just tweeted saying that the domain is back up. Waiting for all the DNS
servers to cache it. And the domain is registered for 10 years.
So there you go Amala. Happy now :)
On Wed, Apr 21, 2010
Added this to Project model:
def self.find_in_funding_sources(f_s)
project_ids = f_s.reduce([]){|items, funding|
items.push(funding.project_id)}
projects = Project.find(:all, :conditions=[id IN (?),
project_ids.uniq])
return projects
end
now the controller looks better:
.
.
.
On Apr 21, 2010, at 3:12 AM, Matt wrote:
On Apr 20, 9:25 am, Pito Salas li...@ruby-forum.com wrote:
This maybe too vague a question, but I wonder if there's some
wisdom out
there for me to tap...
Sometimes when I get ready to commit, git says that db/schema.rb has
changed. This is weird,
Is there a simple way to flatten 1:1 models so that the methods in one
are accessible from another? This attempt results in a stack depth
exception for any call to one of the explicitly defined methods:
class User ActiveRecord::Base
has_one :contact
Contact.column_names.each do |col|
Hi Pieter
Is it possible to create variables in the rails environment that persist
globally - not as sessions - that would be too much porting of
information forwards and back.
This is possible by global variables in ruby (variables starts with
@@ )
In any case the data needs to be
Hi all,
I have three radio buttons that when clicked are supposed to show a
particular div and hide other divs, pretty straight forward. But what I
have noticed is that while the code works perfectly in Chrome and
Firefox it breaks down in IE 7 8. Here is the code:
%= radio_button_tag( :synch,
Bob, I don't understand, a variable @show_new_expense_page set in the
controller will be available in the view.
Colin
Set where in the controller? In a :before_filter or in show?
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To
What's a good SMS service to use? I want to start sending messages
from my apps via SMS.
Thanks!
--
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
On 21 April 2010 17:12, Shandy Nantz li...@ruby-forum.com wrote:
Hi all,
I have three radio buttons that when clicked are supposed to show a
particular div and hide other divs, pretty straight forward. But what I
have noticed is that while the code works perfectly in Chrome and
Firefox it
Hi
I got a simple iteration going on
% @user.sender.each do |sender| %
...
% end %
Can I fetch and display for example only 2 items from my database insted
of all 4 of them ?
in controller @sender = @user.sender.find(:all,:limit = 2)
in view
% @sender.each do |s| %
Sijo
--
Posted
On 21 April 2010 17:17, Viorel viorelvl...@gmail.com wrote:
Bob, I don't understand, a variable @show_new_expense_page set in the
controller will be available in the view.
Colin
Set where in the controller? In a :before_filter or in show?
It doesn't matter, either will do. Assuming that
Potion Factory has a free web store made with rails, open source that
connects to Paypal.
http://www.potionfactory.com/free/
Trausti
On Wed, Apr 21, 2010 at 4:18 PM, agung sukariman putra
agungsukari...@gmail.com wrote:
its that true brother ? amazing,.. i'll check soon..
--
You received
Babos Catalin wrote:
I got a simple iteration going on
% @user.sender.each do |sender| %
...
% end %
Can I fetch and display for example only 2 items from my database insted
of all 4 of them ?
Is there a better way to do this ?
I could use will_paginate on the iteration (per_page =
Adler Santos wrote:
Errata:
Replace % form_remote_tag :url = {:action = next, :remaining =
@everything} do % with % form_remote_tag :url = {:action =
next, :remaining = @remaining} do %.
Somewhere you need to keep track of which iteration of Next you are on
in the view - perhaps a hidden
Kura Monni wrote:
current_user is defined in the ApplicationController class and it's set
as a helper_method, but apparently it's still not visible in the Webrat
steps.
Check this out
http://programmers-blog.com/2010/04/21/cucumber-vs-webrat-vs-current_user-from-authenticatedsystem
PS.
Hi, guys. I changed some columns types to decimal in database, but the
code is not DIY. Any thoughts on refactoring the following code?
change_table :accounts do |t|
t.change :check_amount, :decimal, :precision=6, :scale=2, :default=0
t.change :cash_amount, :decimal, :precision=6, :scale=2,
Colin Law wrote:
On 21 April 2010 17:12, Shandy Nantz li...@ruby-forum.com wrote:
previous div is show from the unheard click.
Really I'm just wondering if anybody has encountered a similar problem
and how they fixed it if they have. I have been looking at mis-matched
tags with no
On Apr 21, 2010, at 10:32 AM, Ichiro Saga wrote:
Hi, guys. I changed some columns types to decimal in database, but
the
code is not DIY. Any thoughts on refactoring the following code?
change_table :accounts do |t|
t
.change :check_amount, :decimal, :precision=6, :scale=2, :default=0
On Apr 21, 2010, at 10:56 AM, Philip Hallstrom wrote:
On Apr 21, 2010, at 10:32 AM, Ichiro Saga wrote:
Hi, guys. I changed some columns types to decimal in database, but
the
code is not DIY. Any thoughts on refactoring the following code?
change_table :accounts do |t|
t
.change
Thomas Allen wrote:
Is there a simple way to flatten 1:1 models so that the methods in one
are accessible from another? This attempt results in a stack depth
exception for any call to one of the explicitly defined methods:
If you wanted all the attributes on one model, why the heck did you
Does ActiveRecord.connection.execute(string) perform any modifications
on the given string? If so, what quoting do I need to add?
Here's why: I'm trying to use execute(string) to load a stored
procedure. I can hand-load the procedure without error (i.e. via
dbconsole), but when I call the
Philip Hallstrom wrote:
On Apr 21, 2010, at 10:56 AM, Philip Hallstrom wrote:
:check_amount, :decimal, :precision=6, :scale=2, :default=0
end
change_table :accounts do |t|
[:check_amount, :cache_amount, :change_amount, ..., :total].each do
|c|
t.change :c, :decimal, :precision =
Yes, I have installed Rails, as well as oracle_enhanced adapter and oci8
installed.
I found an interesting link about using legacy databases:
http://www.slideshare.net/napcs/rails-and-legacy-databases-railsconf-2009
I did: rails --database=oracle ora_t1
I took the advice of Craig White and
Hi,
I have a problem when I'm doing rake tasks. This behavior happens only
on one machine, on another three ones all works fine (three is on
ubuntu, problem one is under debian); totally identical environment (I
guess).
I'm using translator gem, loading through config.gem in environment.rb
file.
In the setup of
class Group ActiveRecord::Base
has_many users :through =user_groups
end
class User ..
...
end
for admin like behavior (i.e. we want to see any/all users associated
with this group), this is enough.
However, in other cases, I want something like
class Group
I find manually accessing the router to be quite ugly below. Is there
a more direct way to access it?
module ApplicationHelper
def menu_item text, url = nil
routes = ActionController::Routing::Routes
url = if url
if url.is_a? String
url
else
Check out this (my) presentation:
http://bit.ly/grease-your-suite-html
arrow keys navigate.
--
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
On 21 April 2010 20:36, Thomas Allen thomasmal...@gmail.com wrote:
active = request.request_uri == url
Would using url_for() not save you a lot of hassle generating that url?
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To post to
1 - 100 of 145 matches
Mail list logo