similar to: redirect_to outside of a module

Displaying 20 results from an estimated 7000 matches similar to: "redirect_to outside of a module"

2006 May 22
3
rails naming convention for model: community
Hello, How does Rails deal with the pluralization of community. I have "community" as my model name. Will Rails automatically look for a table name "communities" or do I have to name the table "communitys"? Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Apr 27
4
GD2 to Make Charts
I''m just getting started with GD2 and have successfully made a few dynamic PNGs. I need to make some fairly detailed line graphs on the fly and I know that GD2 is capable of what I want but I strongly suspect I''m reinventing the wheel badly. Are there gems or other projects that help creating complex charts? I''ve used GDChart in the distant past but I
2007 May 08
2
Extending SuperRedCloth
Fellows of the cloth -- I''m writing code that subclasses RedCloth and emits styled text that is not HTML. For example, I''m going to be emitting RTF and other formats from Textile or Markdown. I''ve got it working quite well with plainclothed RedCloth, but I can''t seem to override any of the methods in SuperRedCloth. Here''s a sample:
2007 Jun 19
5
TentSteak 0.2.0
The second release of TentSteak is out and available as a gem on rubyforge ("gem install tent_steak"). This version introduces a handful of new form helpers, a couple method renames, editable HTML tables, and some application bootstrappers for kickstarting Camping and initializing ActiveRecord. It''s still in active development, and I''d very much appreciate
2007 Sep 24
1
Mosquito TDD Framework Updated
Mosquito, the TDD framework for Camping has been updated (0.1.3). We''ve tried to keep it backwards compatible, so your apps should continue to work. But feel free to submit a bug report at RubyForge if you have any problems. Changes: http://rubyforge.org/frs/shownotes.php?group_id=351&release_id=14845 Download: http://rubyforge.org/projects/mosquito/ Docs:
2007 Jun 19
1
Plugin Requirements
I like the style of the Merb plugin manager....installing gems straight from RubyForge. However, the current implementation in trunk wants to find an install script and a Rakefile.merb. Many gems would still be useful without this and could be easily packaged with a Merb app for deployment. Right now it wil "rescue nil" if no uninstall script is found, but the others are required. Is
2006 Mar 25
2
Rails Plugins: How to copy artefacts to the public directory during install? When is install.rb executed anyway?
Hi, I want to write a plugin that uses JavaScript and I am wondering how to put the static content, i.e. the JavaScript, in place? I read the documentation I found ( http://wiki.rubyonrails.org/rails/pages/Plugins and links) and looked at the listed plugins. One thing I found was that subversion seems to be a prerequisite for providing or even installing plugins. Is that right? The other thing
2006 Aug 16
3
gems vs plugins
Hi, Is there an easy way of converting a gem to a plugin, or at least something you can dump into $RAILS_ROOT/vendor? I''m uncomfortable having stuff like capistrano, the shipping gem, builder, autotest being installed globally as a gem instead of being installed for each application. What do you think? Joe
2006 May 04
2
validates :on 2
Hello, I need to have this for :create and :login how do I do so validates_presence_of :login, :password, :password_confirmation, :user_name, :email, :on => :create I do need it to be off in a number of places though -- Posted via http://www.ruby-forum.com/.
2006 Feb 28
6
Log Files in View
Is it possible to display the log files in the view? Thanks in advance. -- Posted via http://www.ruby-forum.com/.
2006 Aug 01
2
tab characters with Rails 1.1 on Windows
We just upgraded to Ruby 1.8.4 and Rails 1.1. It works fine on my Mac OSX, but in Windows, Rails spits out errors like "Invalid char `\002'' in expression". Apparently, Ruby or Rails on Windows has a problem parsing tab characters. This seems to be a common problem: http://softiesonrails.com/articles/2006/04/27/spaces-not-tabs However, the only recommended solutions seems
2007 Jul 16
6
Advice regarding extending RedCloth
Hello, I am in a bit of a bind. I need to reliably parse mediawiki markup to html, and the only parser that I can find (mediacloth) has a lot to be desired, so I would like to extend something that works and parse mediawiki markup. My question to this list is should I start working on RedCloth or SuperRedCloth or is there a difference as far as extending them? Also does anyone know of a write up
2007 May 04
22
CampingConf?
Campers -- In a few weeks there will be a bunch of people in Portland, OR, for a conference. A long time ago some campers mentioned that might be a good time for us to get together and hold a mini CampingConf for a few hours. Is anyone interested? Does anyone want to organize it? I''m thinking Wednesday night, May 16. We could possibly get a spot at FreeGeek (not likely since they are
2007 Jun 27
5
Mosquito Fixtures Won''t Load
I can''t get fixtures to load correctly in a Mosquito test. The first fixture loads in the unit test, but the rest don''t load at all. File structure: tracker/ tracker.rb test/ test_tracker.rb fixtures/ tracker_measurements.yml tracker_projects.yml Relevant test code: require ''rubygems''
2007 Oct 13
1
Formatted Routes?
Is anyone using formats with the url generator in trunk? I can''t figure it out and it seems to be unimplemented in the router code. I want to do something like url(:articles, :format => "xml") # => /articles.xml or url(:formatted_articles, :format => "xml") -- Geoffrey Grosenbach ........................ PeepCode Screencasts http://peepcode.com
2007 Jul 11
4
Extending Markaby for SVG
Hi all, I love the elegance of Markaby for HTML generation. I''d like to do something similar for SVG, e.g.: svg11 do title "Slide Title" rect({:x=>2,:y=>2,:width=>508,:height=>318,:fill=>"aqua"}) g({:style=>"fill:blue; stroke:black", :transform=>"translate(17,-38)"}) do circle({:cx=>70, :cy=>100,
2008 Sep 01
4
Generating Images/PDF Server-Side
Hi, I am working on a project where I need to generate a chart (a bit like a pie chart, but very customised) and insert this into a PDF document. Does anybody have any advice on ruby libraries (or other techniques) for doing this? Open to suggestions? The resulting PDF will be designed for printing and so ideally should be vector throughout (or any raster images 300dpi). I was thinking of some
2006 Feb 11
9
Textmate Backtracer 1.0
Originally posted at http://blog.inquirylabs.com/2006/02/11/textmate- backtracer-10/ == Announcing Version 1.0 == The backtracer has been around for a while now, and seems to have done its job well enough to deserve a 1.0 mark. == What Is It? == Whenever a Rails exception occurs, it spits out a backtrace full of filenames and line numbers. I?ve often thought, ?Wouldn?t it be nice if I
2006 May 05
3
Plugin refresh time
Hi there, I''m currently developing a plugin to do authentication and authorisation. In the init.rb file of the plugin I have this code:- $:.unshift File.expand_path(File.join(File.dirname(__FILE__), ''lib'')) require ''open_advantage/authorisation'' ActionController::Base.send :include, OpenAdvantage::Authorisation and this is the skeleton of my
2006 Jun 18
2
Installation on Mac Problem
I''m not exactly sure what the root of this problem is. I followed the following tutuorial on installing Ruby on Rails on Mac OS X: http://www.hivelogic.com/articles/2005/12/01/ruby_rails_lighttpd_mysql_tiger Everything is working fine but when I navigate to : http://localhost:3000/ or go to any other pages that I''m attempting to serve with RoR I get the following errors in