Displaying 20 results from an estimated 7000 matches similar to: "Controllers and Namespaces (no problem, just questions)"
2006 Nov 04
0
Namespacing controllers
Sorry for the dup, but didn''t get a response with the first one, so I
cleaned it up a bit in hopes of getting a response.
There has been a couple of blogs (one posted at
weblog.rubyonrails.com"Things you shouldn''t do in Rails") that are
stating namespacing controllers
are bad and that you should avoid using them.
This idea does not sit well with me and am curious as
2006 Jan 31
2
Need advice on RoR app design
Fellow Railers,
Is there anything, anywhere, that I can read that discusses overall RoR
app design? I have the Agile RoR book, which is great for learning the
details of RoR, but unfortunately doesn''t cover the overall issue of
creating a large, complex RoR app.
My staff and I are still in the process of getting up to speed on Ruby
and RoR, but we also need to begin thinking about
2008 Jun 10
1
Rails 2.1 PDF book just released
Less than one week after the release of Rails 2.1, was launched in
Brazil the first book describing all the new features of this release.
After the launch of the book in Portuguese, the Brazilian community
united to translate the book into English.
Done! A gift from all Brazilian Railers to the international
community.
more information and download:
www.nomedojogo.com
www.pedropimentel.com
2010 Mar 23
0
Namespaces that are controllers?
I''m checking out the new router in Rails 3, and was looking to create
an ''/admin'' section of a website with several namespaced resources,
however I''d like the top level ''/admin'' to also route to a
controller. Here''s my current setup:
match ''admin'' => ''admin#index'', :as =>
2006 Aug 03
5
DRYing up the view
Hello everyone!
I have generic views for CRUD operations
For example I render(''shared/list'') from controller
shared/list.rhtml
...
<% for item in @list %>
<tr class="<%= cycle ''list-line-odd'', ''list-line-even'' %>">
<%= render :partial => ''item'', :locals => { :item => item } %>
2007 Mar 19
3
controller_name with dynamic controllers
I''m writing a controller which should only be inherited from,
something like the generic crud controller seen here: http://
geekonomics.blogspot.com/2006/07/crud-and-shared-controllers.html
Now, in my spec, I would like to create a controller which inherits
from the generic CRUDController, without actually creating the
controller. This controller is *only* for testing.
How can I
2011 Jul 07
0
Developing with Namespaces (was: Recent and upcoming changes to R-devel)
Hi Kasper
FWIW, the package development and maintenance support in 'mvbutils' makes it trivial to work with namespaced packages, even at the earliest stages of development. It's completely easy to add and remove functions to/from the namespace (and the exported visible bit) while the package is loaded. Debugging is seamless (via the 'debug' package, anyway). There is no need
2012 Jul 26
2
Develop resources within namespace
Hi,
I want to develop my resources that deal with CRUD operations on my models in a namespace of /admin. How is the best approach to do this? What needs to be changed in order to do this? As in my last attempt of moving things to a namespace my software broke.
TIA,
Dean
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To
2006 Aug 14
1
Testing CRUD/Rest Controllers
I have a few simple controllers doing plain, simple crud in a standard way.
now it''s not very DRY to write a funtcional test for each controller, since
they are all doing the same (apart from a few variable names, but that could
be easily inflected or so).
is there a way to do this?
e.g. does inheritance work with tests, so i define a base test first,
inherit my other tests and add a few
2006 Jan 27
0
Mad Railers First Meeting
Hi all,
We are very pleased to announce the first meeting of Mad Railers, the
Madison, WI Ruby on Rails Users Group. Here are the details:
When:
Monday, February 13, 2006 from 6 p.m. - 9 p.m.
Where:
Madison Area Technical College
Downtown Education Center
211 N. Carroll St.
Madison, WI 53703
Room D240
Google Maps Link:
2006 Aug 18
0
Impact of inheriting controllers on models
I have some protected methods and authentication/acl filters I want to
inherit down through my controllers.
So I have controllers which inherit like this:
Application_controller
\
-- AdminArea Controller
--\
----dashboard controller
----user controller
----content controller
----\
------page controller
------placement controller
-- PublicArea Controller
--\
........
At the deepest level the
2006 Jul 04
0
Multiple and nested controllers or routing
Hi,
I''m new to Ruby and Rails and I''m making a simple application to help me
learn how to use it. At the moment I have an admin controller. When the user
goes here I want them to be presented with 3 choices: manage photos, news
and pages. From there I want them to be able to CRUD each type.
At the moment in the admin controller I''ve defined actions "photo",
2007 Mar 24
1
spec''ing metaprograming & rails CRUD
For edge rails there is a Crud generator. There is also a CRUD
controller that is out there from which you can inherit your other
controllers (see http://geekonomics.blogspot.com/2006/07/crud-and-
shared-controllers.html)
This got me thinking about Crud controllers in general. As far as I
know, the generator can''t produce crud classes which are nested
(i.e.
2006 Jun 12
2
Ruby on Rails Copenhagen Meetup
Hi Railers
If you are in the Copenhagen area on the 29th of this month (that''s a
Thursday) Jesper and I would be glad to see you at Caf? Selina in the
central Copenhagen for the first of many Ruby on Rails meetups.
We start at 20:30 hours and have of cause arranged for free beer and
complementary WiFi.
Our goal is to create an inspiring atmosphere where railers (new and
old) can
2007 Mar 24
0
Using spec fixtures with integration tests
Hi all,
How can I use spec fixtures with rails integration tests ?
I''ve tried adding {{ fixtures "../../spec/fixtures/myfixture" }}
to the integration test but the fixtures are not loaded when I run the
rake task.
Rails doesn''t load symlinked fixtures either so I copied the files from
spec/fixtures for the time being. Not very DRY.
Any ideas ?
Keith
2005 Oct 17
2
What to install/configure?
Hi railers,
(railers? Rails-ers? How do you folks refer to yourselves?)
I''m brand spankin'' new to most of this. I''m just learning ruby, just
learning rails, just learning MySQL, and really just learning about
Apache/CGI-type stuff. I have a long background with UNIX sysadmin and
scripting (lots and lots of Perl and Bash), so the ruby is coming fast
(and
2006 Dec 10
5
model-controller-paradigm: What about admin controllers?
Hi all
We all know the model-controller-paradigm: I have a model "News" which
has a corresponding CRUD-controller "NewsController".
But now I''m quite unsure about the following...
Guess we have normal visitors that visit our site www.??.com/news and we
have administrators that create and modify news items.
The admin should see an "Edit" link and a
2007 Mar 24
1
RSpec and namespaced controllers
I''m running into a problem with RSpec/Rails and namespaced controllers.
I''ve got a controller called ''TenantsController'' in app/controllers
and another called ''Admin::TenantsController'' in app/controllers/admin
In spec/controllers/, I have a tenants_controller_spec.rb. In
spec/controllers/admin/ I have another tenants_controller_spec.rb.
Both
2006 Mar 21
0
Automatic namespacing of custom Rake tasks
As you know you can create your own .rake files in lib/tasks and
Rails will automatically find them - as Rake 0.7 adds namespace
support and Rails is already taking advantage of these namespaces if
you are on Edge Rails I thought it would make a lot of sense if Rails
automatically namespaced your own custom rake files, so I raised a
ticket for this and I''ve now implemented it
2005 Aug 18
10
Scaffolding, DRY and RHTML
Hello all, I''m working on a couple of Rails projects at the moment and
have noticed something that seems to go against the DRY principal.
Why, when scaffolding, are individual CRUD rhtml files created instead
of using one as a partial and having the others use that single
partial? This especially applies to the list rhtml. I am about to get
to the other operations and see how feasible