Displaying 20 results from an estimated 20 matches for "tomtaylor".
Did you mean:
mtaylor
2006 Apr 09
7
The search on this forum should improve to improve the forum
The search on this forum should improve to improve the forum
--
Posted via http://www.ruby-forum.com/.
2006 Jan 02
6
Login_engine - auth against email rather that username?
Hi all,
Short of hacking the code apart, is there a method making the
login_engine authenticate against email address rather than username?
I find that people rarely remember usernames, and would prefer to use
email addresses as the identifier.
Thanks!
Tom
2006 Feb 21
7
has_many :through failing to save changes
Hi all,
I''m messing around with has_many, and has_many :through (on edge rails),
using a join model. Branches and Projects join through ProjectsAtBranches.
If I do @branch.projects, I can see the associated projects, and
visa-versa, if I manually put them in the join table.
But I cannot do @branch.projects << Branch.find(blah), or
@branch.projects.clear, and then save the
2008 Jun 16
1
Fix for IE6 bug in geocoding
Hi,
I was trying to use the geocoding stuff in Mapstraction and found a
bug with IE6. I couldn''t find a way of submitting it on Trac, so here
it is. Change line 110 of mapstraction-geocode.js from:
place = response.Placemark[0];
to:
var place = response.Placemark[0];
Otherwise IE6 doesn''t declare the variable properly and things break
in obscure ways.
Cheers,
Tom
2006 Feb 20
1
Using :except or :only on a before_filter block
Hi all,
How do you use :except or :only conditions on a filter block? I can''t
seem to work out the syntax!
I''m currently doing:
before_filter { |c| c.role_required ''admin'' }
Thanks a lot!
Tom
2006 Mar 23
5
validates_dateness_of ?
Hello all.
I don''t suppose some enterprising soul with much more skill than me has
whipped up a "validates_dateness_of" (Complete with leap year
calculations) method for use with all the other validation methods and
wishes to spread much much joy?
Cheers
Jeff "I can barely code RoR and rely on others to do the hard work"
Jones
--
Posted via
2006 May 18
3
Google Map
Used a great howto @
http://iamrice.org/articles/2005/12/09/using-google-maps-in-the-uk-with-rails
for using google maps on uk sites. Just having one issue I can''t seem
to work out how to draw the postcode from my table I keep getting hit by
method errors.
The controller is
require ''postcode_2_latlong''
postcode = Postcode.new("TN22 2LG")
# I want this to
2006 Apr 04
4
Freezing Architecture-Dependent Gems such as Rmagick, Ferret, Unicode
A lot has been made recently about the need to freeze your gems for
production deployment on a shared server so your application can depend on
it''s own gem version instead of being subjected to whatever gem is installed
on the server, but does this rule of thumb come with an exception?
Architecture dependent gems such as RMagick, Ferret and Unicode have
dependencies that cannot be
2006 Mar 10
19
validates_date plugin for ActiveRecord
This plugin gives ActiveRecord the ability to do stricter date checking.
Example:
class Person < ActiveRecord::Base
validates_date :date_of_birth
end
This will ensure that date_of_birth is a *valid* date. The date can be set
initially as a string in any of the following formats:
"2006-01-01"
"1 Jan 06", or "1 Jan 2006"
"1/1/06" # Day /
2006 Aug 16
0
Help get Mongrel on Dreamhost
I know there are some Dreamhoster users here, who might be interested in
getting Dreamhost to support Mongrel. If you are, vote for the
suggestion via this link:
https://panel.dreamhost.com/index.cgi?tree=home.sugg&category=Software%20Installations&search=mongrel
Cheers,
Tom
2006 Apr 01
1
Ruby 1.8.4 on Debian stable
Has anyone managed to find a nice and easy way of upgrading to Ruby 1.8.4
on Debian stable? I''m not too adverse to installing an extra repository,
and would like to avoid compiling it myself. Stability isn''t a *major*
issue; this machine won''t be in ''real'' production.
There''s nothing particularly obvious when searching Google.
I''m
2006 Apr 10
1
Tracking 1.1.x release using svn:externals?
Now that Rails is doing regular updates to 1.1.x branch, is it possible
to track the this release using svn:externals inside my app?
Currently I have:
rails http://dev.rubyonrails.org/svn/rails/tags/rel_1-1-1/
in my vendor directory. Can I change this to something like a wildcard
''rel_1-1-x'', ensuring that I always have the latest of the stable 1.1
branch?
Cheers!
Tom
2006 Mar 06
0
Multiple actions for one route (making pretty URLs hit different actions)
Hi all,
I''m trying to make pretty URLs using routes for some of my actions
across different controllers. For example:
http://www.example.com/london ->
http://www.example.com/articles/show_by_name/london
But if the id ''about'' couldn''t be found, then to search for it as
another action, this time from the ''branch'' controller.
2006 Mar 18
1
Custom Capistrano maintenance template
Hi all,
How can I customise my Capistrano maintenance template, per RoR
application? I''ve found the system wide file, but want to design a
different one for each application.
Thanks a lot!
Tom
2006 Jan 02
2
Agile Web Development book - version 4.0 released
I don''t know if I missed this on the list, but the Agile Web Development
with Rails book is now at version 4.0, for those of us who bought the
PDF from the Prag Prog site.
Just a few typos and corrections from the looks of it, but can''t hurt to
get the latest.
You can reorder the book for download at:
http://books.pragprog.com/titles/rails/reorder
Cheers,
Tom
2006 Jan 16
1
Problem with production on Dreamhost - TemplateError
Hi all,
I''m trying to deploy my app to Dreamhost for production. I''ve managed to
solve all of the Error 500s and it''s *almost* working.
When I try and view a page, I get a TemplateError that I don''t get when
I''m running from home using InstantRails under Windows.
The error is:
ActionView::TemplateError (undefined method `user?'' for
2006 Jan 19
0
Handling specific page editing permissions for members
Hi all,
I''m building a custom content management system for a website in Rails.
What''s the best way of restricting members to being able to edit
specific pages?
For example, a members might belong to a branch, along with many other
members (n:1 relationship). But I only want specific members to be able
to edit their branch page on the site, and no other branch pages.
2006 Jan 26
2
Rails Edge stability - has_many :through
Hi all,
If I was to start developing an application using Edge Rails with the
view to deploying on Rails 1.1, would I fall foul of lots of bugs, or is
it relatively stable?
I''d really like has_many :through relationships, to save me dealing with
HABTM + associations.
Thanks,
Tom
2006 Jan 09
5
Paypal IPN - unable to access breakpoint during POST?
Hi all,
I''m trying to debug some code in my paypal instant payment notification
action.
Why can I not access the breakpoint placed inside the action that paypal
POSTs to? It just doesn''t find the server, but it works fine when placed
inside other actions.
I''ve appended the code to the end of this post.
Thanks everyone!
Tom
--
def paypal_ipn
notify =
2006 Jan 12
15
Production deployment on Dreamhost?
Does anyone have any experience with production deployment of RoR on
Dreamhost? Is it now stable enough? Any tips and tricks?
Thanks a lot,
Tom