Displaying 20 results from an estimated 600 matches similar to: "Controllers More Than One Sub-Directory Deep?"
2006 Apr 17
15
Version 1.1.2 CHM Documentation File
I finally got around to compiling the Rails 1.1.2 Documentation into a
CHM file this morning.
You can download the file directly from here:
http://delynnberry.com/files/rails-documentation-1-1-2.chm.
Let me know if you encounter any problems with the file.
--
DeLynn Berry
delynn@gmail.com
http://delynnberry.com
2006 Oct 16
6
Rails CHM Documentation - 1.1.6
Just a quick email to let those interested know that I''ve posted an
updated version of my CHM document that now has all the documentation
from the 1.1.6 release of Rails. You can read more about it here:
http://delynnberry.com/2006/10/16/rails-chm-documentation-version-1-1-6
I''m also planning on creating a pre-release version based on what is
currently available in Rails trunk.
2006 Feb 07
13
CHM Documentation for Rails Version 1.0
Just wanted to let everyone know that I just posted an updated CHM file that
contains documentation for Rails Version 1.0. You can read all about
it here<http://www.delynnberry.com/articles/2006/02/07/rails-chm-documentation-version-1-0>.
I plan to continue updating the CHM file as newer versions of Rails are
announced, but I also want to finish an article that includes a rake file
that will
2006 Nov 24
14
CHM Documentation for Rails 1.2.0 - RC1
Since the first release candidate of Rails 1.2.0 was announced
yesterday, I decided to update my CHM documentation file for this
release. You can find the updated file via my CHM Documentation
Project Page [1], or you can download the file directly from here:
http://delynnberry.com/assets/2006/11/24/rails-documentation-1-2-0-pre-release.chm.
[1] -
2006 Jan 20
11
Userstamp Plugin
I''m pleased to announce a new plugin for Rails: Userstamp. You can read my
blog post at http://www.delynnberry.com/articles/2006/01/20/userstamp-plugin
and/or read all about it at the perminant page
http://www.delynnberry.com/pages/userstamp. Any comments or suggestions for
improvement are much appreciated.
--
DeLynn Berry
delynn@gmail.com
http://www.delynnberry.com
A dump of the Readme
2006 Feb 19
8
select, first option empty value?
using the below:
<%= select(''project'', ''project_type_id'', @project_types.collect {|x|
[x.name,x.id]}, {:include_blank => true}) %>
but i''d like that first option to have something like "select project
type" with an empty value?
2006 Jun 02
4
Web app developed in WInXP want to run on Linux
Hi All,
I have developed a web application using RoR on Window-XP. Now my server
is on linux and want to get this running on linux machine. I tried
starting the server but it failed to boot in boot.rb at this line:
unless RUBY_PLATFORM =~ /mswin32/
require ''pathname''
root_path = Pathname.new(root_path).cleanpath(true).to_s
end
so I changed(even though the file says
2006 Apr 24
4
creating a select box
Hi
trying to create a select box in _form.rhtml.
I have a table called organisations that contains fileds, 2 being ''id''
and ''name''
these are the fields I need to bring over to the clients _form.rhtml.
whats the best way of going about that??
2 ways i have seen suggested that I cant get to work
-@organisations = Organisation.find_all placed this in def new
2006 Apr 25
3
select boxe
yop,
http://rubyonrails.org/api/classes/ActionView/Helpers/FormHelper.html
ici j''ai vu qu''on pouvait g?n?rer des ?l?ment d''un formulaire gr?ce des
m?thodes. Apres quelque petite recherches j''ai trouv? comment g?n?rer un
select
<%= select(''category'', ''category.id'', Category.find_all.collect {|category|
category.nom})
2006 Jan 31
2
Problem generating CHM Rails doc
Hi,
I have problem generating chm file for the rails doc.
I''ve commaned the rdoc to generate the chm by:
rdoc -f chm -o chm_folder action* rails-*
It gave me the following error:
vendor/rails/railties/lib/rails_generator/generators/components/controller/templates/controller.rb:3:15:
Expected class name or ''<<''. G
ot RubyToken::TkLT: "<"
By adding
2006 Jan 16
16
acts_as_authenticated current_user in a model?
What do I need to do to be able to use an acts_as_authenticated
current_user in a model?
Is there some sort of include or require I can do some where that would
allow this?
**********************************************************
Here is what I am trying to do:
**********************************************************
class Setting < ActiveRecord::Base
before_create :created_by_user #
2006 Mar 14
2
Where i can download docs for offline reference?
I have seen the testing doc or the FAQ on ROR site, but is there a zip
file for it?
2006 Jun 09
1
Rails Plugins With Views
Howdy Kids,
I currently have a Rails component we use in our CMS to display some
items... Well, everyone keeps telling me that components are going out of
style and could be depracated sometime soon so I''ve been looking at writing
a plugin.
Does anyone have an example of a plugin that includes views? I''d love to
check one out to get an idea of how to structure my own plugin.
2006 Jan 20
11
HABTM relations
Hi,
I have 3 tables with HABTM relation.
USERS -> QUOTE_TO_USER <- QUOTES
Table QUOTE_TO_USER has 3 attributes: quote_id, user_id, component.
I have a form where I can tie multiple users to QUOTE. This is easy one,
thru "user_ids" (@quote[:user_ids] = @params[:quote][:user_ids]).
In this form I have all users and I just check those I want to tie to
this quote, however
2006 Jul 13
6
Render partial questions
Hello,
what is the preferred way to do this...
I have 2 controllers. Each has an index action.
Now I want to include the rendered index view from TwoController in the
index view of OneController.
But a render :partial doesn''t execute the TwoController index action
which sets variables for its index view.
So maybe you can give me a short example how to do it.
Thank you
Markus
2006 Mar 31
6
Split Validations?
I have a single table that two people enter data into. Person A creates
the record and I need to specify certain required fields in his form.
Person B has a separate form and she fills in additional fields and I
need to specify that some of these are required.
Since the data is all in one table and since the validations are in the
model, won''t Rails complain when person A tries to
2006 Jan 25
12
DRY in Models
I am building an app right now that needs to grant access to three
levels of members right now - each will have their own table in the DB.
When creating the add_user action I am converting the password into a
hashed password through the model.
The way I am doing this right now, I will inevitably end up with
repeated code in three different models. Is there a way I can define
this code in
2006 Apr 10
0
Plugins & ActiveSupport::CoreExtensions
Is it possible to add to ActiveSupport''s CoreExtension module via a
plugin? The only way I''ve been able to do this is to add my extensions
to a library stored in the lib folder.
Thanks.
--
DeLynn Berry
delynn@gmail.com
http://www.delynnberry.com
2005 Dec 28
3
Module loading
I''ve looked high and low for the answer to this and can''t seem to find
anything that helps.
I have an admin section (much like Typo) where all controllers are based
on the Admin::BaseController.
My directory structure is
[RAILS]
-app
--controllers
---admin
----base_controller.rb
----products_controller.rb
Products controller is:
class Admin::ProductsController <
2006 Jan 08
9
URL/Site structure
Greetings,
I''m fairly noob with rails and making my first DB driven site with it.
I''m using the scaffold generator to develop the admin side of my site
(admin_controller)
I have three sections that I want to have the administrator edit, and I
want to call these from the admin controller that has a layout with
navigation to these three sections.
When using the scaffold