Displaying 20 results from an estimated 9000 matches similar to: "Developing in different versions of rails at the same time?"
2006 Aug 16
5
Class redefinition
Hi,
Suppose I want to redefine the Ruby String class in a Rails app. In which
file is it the most suitable to write the redefinition?
Thanks
Guillaume Carbonneau
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060816/5b0da204/attachment.html
2006 Aug 17
2
Knowing the partial iteration number
Hi,
How can I know the iteration number of a *render (:partial)* iterating
through a collection?
Example:
I got a collection containing 3 elements:
*John
*Pierre
*Chris
John would respond to 1, Pierre to 2 and Chris to 3 and so on...
Kind of like the *cycle* method acts but to know the iteration number.
Guillaume Carbonneau
-------------- next part --------------
An HTML attachment was
2006 Jan 10
14
Not wishing to instigate a DB war, but...
Can I get some opinions on which free DB to use with rails for a virtual
server that will eventually be doing lots of heavy database lifting?
Not a lot of heavy duty querying per se. Think multiple simultaneous
forums and blog sites and the like.
I know each of the different DB possibilities such as MySQL and
PostgreSQL has plus points and minus points. I''m particularly
interested
2006 Jul 13
2
Intel Mac, Rails, MYSQL - access denied
Hi,
Nuby on Rails here trying to bring up an existing app on a new
installation.
The whole ruby/rails/mysql/lighty installation was done per the much
touted "hivelogic article" that runs through all the steps.
I am running into a permission error when I try to do a rake migrate to
set up a session database needed by this existing app. Extracted from
the trace...
** Execute
2006 Aug 18
4
Mongrel setting with Mysql error
Hi,
I''m pretty newb at Rails deployement stuff.
I''m setting up a Mongrel web server on windows following the tutorial on the
official site.
My app works except when there''s interaction with MySQL. I get this error :
"Uninitialized constant Mysql"
Now i''m pretty lost and i''m sure i''m doing something wrong. I''ve tried
2006 Aug 11
9
I have boosted my productivity !
Just a positive experience I would like to share with you : testing is
great on paper but very tedious to apply because nobody wants to run
manually the tests by hand.
Last week I have discovered zentest, an automated test process command
line utility. That was at the beginning (hopefully) of a new project.
Believe it or not, I have started to code most parts of the application
without using
2006 Aug 30
4
Mongrel service never starts
I''m on a Win2K server environnement running ruby 1.8.5 and mongrel
I''ve followed the tutorial and everything went fine until I start the
service...
Here is the output I''m getting :
C:\ruby\bin??>mongrel_rails service::start -N inventaire
One moment, start pending
One moment, stopped
One moment, stopped
One moment, stopped
One moment, stopped
One moment, stopped
2006 Jul 23
6
how do you give focus to a form field?
When you put up a page with a form on it and the top item is a text
field it would be nice to have that field already focused instead of
forcing the user to click in it before they start typing. Is there a
rails (i.e. probably Prototype) way of giving focus to a field? I did
some searching and found nothing.
thanks,
jp
P.S. I''m on a Mac. Perhaps a winoze and/or unix automatically
2006 Jan 23
3
Can Google (et. al.) see rails pages?
Hi,
Noob here.
One problem faced by developers of active content is making sure that
the final results of their magic result in URL''s that Google and other
search engines are comfortable with. Otherwise, your content won''t ever
get spydered and indexed and ultimately returned in a google user''s
results pages.
In reading the agile rails book, it seems that the
2006 Jul 26
1
how do I get the IP address of form poster?
How can I capture the IP address of a user who is posting my sign-in or
login forms? I want to store it as part of my user information so that
if I want to block the user in the future, I can also block the IP
address they used to sign in.
thanks,
jp
--
Posted via http://www.ruby-forum.com/.
2006 Jul 18
5
mac users: what program do you use to create your views?
just wondering if there is a better way to create a nice view other than
using iweb. like, it would be nice if you can design a view, and then
just add the ruby tags.
thanks.
--
Posted via http://www.ruby-forum.com/.
2008 Jul 06
12
Action Mailer Driving me insane
Ok, maybe its a short walk, not a drive...
I have it working just fine using smtp in development env from my OSX
machine. When I deploy it to the server (which happens to be the same
box where the smtp server lives), no email, no errors, nothing in the
Postfix logs.
I''ve double checked that my production and development action mailer
settings are identical. Here''s whats in the
2008 Feb 13
6
trouble updating partial from collection
I have a view where I render a partial over a collection. Each instance
of the partial includes a <div> with an id specific to that instance.
Inside the partial, there is a select tag for "year". I''m trying to
change some of the contents of the partial when user changes the year.
I''m using this in the view:
<%= select_tag :year,
2006 Jan 12
2
Develop locally, Debug Globally?
Total Ruby Noob here. Just in the throws of reading the books and
choosing an isp for my server etc.
If you are developing a "one-off" rails app with the intent of using it
on an isp hosted server, would it normally work better to develop and
debug the thing locally (like on a Mac for instance), and then go
through a round of "move it to the server and retest everything there
2006 Jun 06
9
How to protect images from public?
Hi,
I''m trying to figure out the best way to protect images uploaded by
users who may wish to keep them private.
For example, if they are uploaded in the default file_column location
(/public/blah/blah/1/) then someone can simply type the URL
http://www.blah.com/blah/blah/1 and get the image.
I can store the images in a non-public directory in the rails app (ie:
/railsapp/images/X/)
2006 Mar 13
9
Subversion problem - since you guys talked me into it :)
Following the advice here I''ve been trying to get subversion installed
and working from my virtual dedicated server this weekend. I believe
everything is installed properly, and that all that''s left is to get the
apache httpd.conf file set up correctly.
to talk to my server with my client I''m using the path:
http://svn.mylittlecorneroftheinternet.com/svn/repos/
error
2008 Oct 27
8
why can't johnny download?
I''m working on an app that includes the feature to allow user to
download a csv file of their data.
I''ve got it working on my local machine, but when I deploy it, the link
I''m making doesn''t work for doing the download. The file IS being
created in the location I''m intending, but the file download only works
on my local machine and not on the server.
2008 Jan 01
26
Did DHH have a suit on?
So I''m wondering about the origin of "ActiveRecord" and "ActionPack" and
the like in Rails.
I''ve always thought that perhaps DHH found himself in a suit one day
(maybe he had to attend a friend''s wedding or something), and as long as
he had the suit on, decided to lapse into a one of the barely lucid
frenzies that Marketing people are prone to when
2006 Jan 17
15
legacy database and finder_sql nightmare!
This is my first rails app with a legacy database and I''m having a
terrible time getting the models set up correctly. I have an order
table that has a primary field named order_number. I have a name table
with a primary of item_number. These two tables are liked by the
item_number and the order_number, but not as you might think. If the
order_number is 2500, then each entry in
2006 Mar 04
4
AjaxScaffold 2.2.0 released with graceful JS degredation
Just wanted to let anyone know that might have checked out the generator
before and couldn''t use it b/c you''re project required graceful degredation.
Well its in there now. Thanks everyone and enjoy.
Demo: http://ajaxscaffold.height1percent.com
Release Notes:
http://www.height1percent.com/articles/2006/03/04/ajaxscaffold-2-2-0-released-with-graceful-js-degredation
--
Richard