Displaying 15 results from an estimated 15 matches similar to: "rails 3 engine under dynamic scope"
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:
#
2014 Mar 31
0
Rails Engine ActionController::UrlGenerationError on functional tests
Hi,
I'm looking for a way to solve an error I get each times I run my
functional tests. I have a Rails Engine gem (isolated), I have a JSON
action with a route declared. But each times I use the method get in a test
I get an ActionController::UrlGenerationError exception.
Here an example of code with the problem:
# config/routes.rbMyEngine::Engine.routes.draw do
resources :cats, only:
2006 Jan 12
2
Engines issue: rake test_plugins failing when it shouldn''t
I create a simple engine with a simple controller:
class FredController < ApplicationController
def hello
render :text => ''Hello, world!''
end
end
and I create a simple functional test within the engine:
class FredControllerTest < Test::Unit::TestCase
...
def test_hello
get :hello
assert_response :success
end
2011 May 06
2
Rails 3.1(beta1) + SASS + variables
Hello all,
in Rails 3.1, is it possible to define global SASS variables (and mixins)
that are shared across all *.css.scss files?
I am able to define SASS variables, yet they seemed to be scoped only within
each individual file …
On a side note -- is there a way to pass variables from my Rails app to the
SASS + JS (or CoffeeScript) files?
Thanks for your help.
Best,
Tomas
--
You received
2012 Dec 01
6
Why does 'extend ActiveSupport::Concern' cause `undefined method 'recycle!'`?
Working on Rails Engine.
I want to make the controllers customizable whereever the Rails Engine is
used.
Therefore, I was trying to use `extend ActiveSupport::Concern` on the
Engine controller class and include it in MyRailsApp.
https://gist.github.com/4185823
# code in my rails engine
moduel MyEngine
class SomeController
extend ActiveSupport::Concern
def engine_some_method
2011 Feb 04
6
A plugin inside an engine
In Rails 3, is it possible to have a plugin inside an engine?
Adding the lib dir of the plugin to autoload_paths doesn''t seem to
work.
I can manage to load it by adding that path to $: and requiring the
init.rb file, but I''m not sure that''s the correct approach.
Thanks!
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2006 Nov 04
0
script/generate and --destination
Hi,
I notice looking at the code for the generate script that there it
"recognises" a --destination command line parameter (so I can do ''ruby
script/generate model --destination vendor/plugins/my_engine
my_model'') but it isn''t processed by the command line handling. I''ve
hacked it into my code but I was wondering if this is an up-and-coming
thing or
2012 May 01
0
Engine: access to url_helpers otside view/controller
I use Engine.
How to get access to url_helpers, such as <name>_path or _<name>_url, in
a separate class? In application it simple:
Rails.application.routes.url_helpers.<name>_path
But how to get access to url_helpers in Engine? When I use
Rails.application.routes.url_helpers.root_path, then I get ''/'', root of
Application. Other helpers for Engine
2005 Dec 21
1
Engines Generator & Howto Extract an Engine
= Engines Generator =
Now part of the Engines plugin, you can generate your very own engines.
$ script/plugin install engines
$ script/generate engine MyEngine
= Howto Extract an Engine =
I have also written a little documentation on how to extract an engine
out of an existing application:
http://rails-engines.rubyforge.org/wiki/wiki.pl?ExtractAnEngine
= Changelog =
2016 Aug 24
1
feature request for non-sweave vignettes
Currently Makefiles for vignettes are only supported for .tex files. Could
the tools package be modified to allow file extensions to be specified for
a vignette engine? Having the pandoc pdf conversion in a Makefile rather
than through R would be tidier in some cases.
If I specify my vignette engine as
```
tools::vignetteEngine(
'myengine',
pattern = '\\.[Rr](md|nw)$',
2006 Aug 08
1
Suggestion: environment.rb Includes
I like the idea of "instant functionality" Engines can offer, but
practical implementation issues make adding and removing more tedious
than it should be.
The process typically requires:
- manual modifications to environment.rb ( e.g., adding engine
configuration and "Engine.start :myengine"
- manual modification to app/controllers/application_controller.rb
This should be
2008 May 07
2
Request for generic engine support
Hello,
Would it be possible to add generic engine support to OpenSSH? One use in particular would be to support TCP forwarding for secure mail server connections and similar applications. This would permit an administrator to configure in an arbitrary external engine to establish a secure RSA-based tunnel. OpenSSH would need no information built into it to accomodate any particular engine.
One
2004 Nov 11
2
PXELINUX - no boot file found
PXELinux from a DHCP server - read the docs - couldnt be simpler.
I'm afraid its beaten me, no matter what I do I always get the same result
at the client side
"PXE-E53: No boot file found"
For the life of me I cannot see what I'm doing wrong and would appreciate
any assistance in trying to diag.
RedHat 7.3 - (I know its old but I have to accomodate other dependancies)
dhcp
2013 Sep 18
2
Accessing model attributes in ActiveSupport::Concern module
I have some models which share the same functionality just on other paths.
So I decided to put these methods in a module and set the path in the
model. My problem is that I''m not able to access the attribute in my module.
my model:
class Job < ActiveRecord::Base
include ImageModel
image_dir = "jobs"end
my module:
module ImageModel
extend ActiveSupport::Concern
2011 May 08
0
R3.1b1 - sharing assets
Hello all,
is there a way to share assets in Rails 3.1 beta1 between an app and an
engine?
It works locally, but not in production -- I guess because of the CSRF
token?
Thanks,
T
--
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