Displaying 20 results from an estimated 170 matches similar to: "RSpec and namespaced controllers"
2020 Jun 24
0
Converting dot-namespaced Maildir to /-namespaced
I have a couple of domains on my server, all of them namespaced with a
dot. It's 10-15 mailboxes at the most. Is there good way to convert them
to / (slash) namespaced folders? Maybe some bash script lying around
somewhere?
2007 Apr 19
1
Spec''ing Namespaced Controllers
I''m stucking trying to figure out how to write a spec for a namespaced
controller. Any help is appreciated.
Thanks,
Marcus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rspec-users/attachments/20070419/75a167fa/attachment.html
2008 Mar 01
1
Asking for last +1 for render :parial => @something in namespaced controllers patch
Hello,
http://dev.rubyonrails.org/ticket/9742
If anyone is annoyed by that, please find a moment to review the
patch. It''s rather tiny and tested enough. It still applies cleanly
(r8962) as I write this.
Thanks,
Jacek Becela
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core"
2007 Jul 24
2
Dealing with nested/namespaced classes w/ describe
Hi all,
Just wondering about this: I''ve been dealing with classes/modules
nested in several layers of namespaces. Here would be an example of
a describe block:
describe ClassOne::ClassTwo::ClassThree, "description here" do
...
end
What would be the easiest way to write something a little more terse,
like:
describe ClassThree, "description here" do
...
end
2010 Aug 15
0
Singular resources namespaced by its slug (Routing)
Hi,
I have the followed Rails 3 routes:
Hello::Application.routes.draw do
resources :blogs do
resources :articles do
resources :comments
end
end
end
By raking them, we can find (for instance):
GET /blogs/:blog_id/articles(.:format) {:action=>"index",
:controller=>"articles"}
Because every routes begin with the
2008 Jan 15
0
Namespaced routes and js.erb
Whenever I try and use a .js.erb view in my nested routes it tries to
look for a layout(i.e. admin.js.erb). any ideas on how to stop this
other than calling :layout => false?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to
2010 Jan 20
0
How to map a Named Route onto a namespaced resource?
I have a site, where I am currently adding a self-built shop.
Among other stuff I have this construction in my route-file
map.namespace :shop do |shop|
shop.resources :categories do |categories|
categories.resources :products
end
end
I like the namespace, since it encapsulates the shop nicely inside my
webapplication.
Somehow I would like the url "http://mysite.com/shop" to
2011 May 30
3
Alternative I18n convention for namespaced models
https://github.com/rails/rails/issues/1402
Can we expect support for that in Rails 3.1.0 ?
Robert Pankowecki
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
To post to this group, send email to rubyonrails-core@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com.
For
2006 Dec 22
2
Relating Namespaced Models
I am dealing with a large project. I use a lot of STI and therfore have
a lot of models. I''d like to use namespaces to help organize my models
but am having trouble getting started.
I have a base model Term::Base located in /app/models/term/base.rb:
class Term::Base < ActiveRecord::Base
set_table_name "terms"
end
I have a non-namespaced client model:
class Client <
2009 Oct 19
3
routing namespaced controllers
Hi,
I have one controller in the /app/controllers/animals_controller.rb
directory, and another in
/app/controllers/production/services_controller.rb. The thing is that
one Animal has many Services, and i''d like to access to them using
something like:
http://localhost:3000/animals/1/production/services/1
or at least with:
http://localhost:3000/animals/1/services/1
I tried the last one
2007 May 17
4
Namespaced model valid #to_xml support in ActiveRecord, ActiveSupport and ActiveResource
Hi,
Attached are links to two patches I submitted via the RoR Trac system
a week or so ago:
http://dev.rubyonrails.org/ticket/8305
http://dev.rubyonrails.org/ticket/8308
I refrained from creating a new Trac ticket for ARes, which will be
affected if both of these patches are accepted by Core.
There are a couple of workarounds for this issue, but it would be nice
for AR, AS and ARes to output
2007 Nov 23
12
namespaced controllers
Out of curiosity, I''ve seen the following fail:
module Admin
describe MyController
...
end
end
But this works fine:
describe Admin::MyController
..
end
Why?
Scott
2007 Jul 18
16
Edge Rails namespaced routing
Hi,
I was wondering if anyone came across a similar scenario when working
with namespaced routes with edge rails.
Consider an application with controllers customers and products that
also have other resources.
map.resources :customers do |customer|
customer.resources :notes
customer.resources :tags
end
map.resources :products do |product|
customer.resources :notes
customer.resources
2017 Sep 17
0
FW: CRAN check errors: drake 4.1.0 on r-devel-linux-x86_64-debian-clang
Hello,
The CRAN checks for the drake package (4.1.0) fail for r-devel-linux-x86_64-debian-clang. This happened right when crayon 1.3.4 was released, but I suspect the problem is not with crayon or drake, but with base R-devel. I cannot reproduce the error myself, but I have copied a minimal working example (MWE) below that should theoretically isolate the problem.
`find_namespaced_functions()`
2007 Sep 13
7
Namespacing Models
Hello everyone,
Do you feel it? The little shiver down your spine when you think of
"namespacing" in rails? To some thats a common feeling, to people like
myself who enforce absolute organization have already thought about
the need for namespaces in rails.
Now I do understand this is an ongoing effort... to some degree.
Controllers and routes, from my experiences work well, that being,
2011 Jul 25
3
Rails 3.1 Engines: Full vs. Mountable
Hi all,
I was hoping someone could please clarify the differences between a
full engine and a mountable one.
I have noticed the following:
** Full Engine **
- With a full engine, the parent application inherits the routes from
the engine. It is not necessary to specify anything in parent_app/
config/routes.rb. Specifying the gem in Gemfile is enough. The
engine routes are specified as:
#
2008 Aug 15
7
Autotest and subclasses / namespaces
I am writing a controller admin/cities_controller.rb
it inherits from AdminController, so it''s defined like
class Admin::CitiesController > AdminController
Whenever I save the controller file, autotest freaks out:
uninitialized constant Admin::AdminController (NameError)
I''m pretty used to just hitting CTRL-C to get autotest to re-load all
the files, or flicking to
2015 Jun 30
2
Defining a `show` function breaks the print-ing of S4 object -- bug or expected?
Hi r-devel
If you define a function named `show` or attach a package with an exported
`show` function, then printing/vieweing S4 objects breaks. This is probably
because the `print` function calls `show`, which is now masked.
Example:
show <- function() {}
> setClass("Person", slots = list(name = "character"))
> tom <- new("Person", name =
2007 Oct 21
13
[ANN/RFC] Rathole, a fixtures extension plugin
Like lots of other folks, I''ve been searching for a way to scratch my
fixture itches. Rathole is my extraction of a few techniques we''ve
successfully applied at my day job.
We''ve been using Rathole for a month or so now, but I''d really like
some feedback from a wider audience. Rathole tackles:
* Conflicting PK''s (no more id''s in fixture
2016 Jun 27
2
The state of IRPGO (3 remaining work items)
On Fri, Jun 24, 2016 at 1:44 AM Eric Christopher via llvm-dev <
llvm-dev at lists.llvm.org> wrote:
>
>
> On Thu, Jun 2, 2016, 6:41 PM Xinliang David Li via llvm-dev <
> llvm-dev at lists.llvm.org> wrote:
>
>>
>> Sounds fine to me, though I am not a fan of using unstable in the option.
>> I think a more meaningful way (that capture the essence of the