Displaying 9 results from an estimated 9 matches for "myengin".
Did you mean:
myengine
2011 Jul 25
3
Rails 3.1 Engines: Full vs. Mountable
...config/routes.rb
Rails.application.routes.draw do
# whatever
end
- No namespacing of models, controllers, etc. These are immediately
accessible to the parent application.
** Mountable Engine **
- The engine''s namespace is isolated by default.
# my_engine/lib/my_engine/engine.rb
module MyEngine
class Engine < Rails::Engine
isolate_namespace MyEngine
end
end
- With a mountable engine, the routes are namespaced and the parent
app can bundle this functionality under a single route:
# my_engine/config/routes.rb
MyEngine::Engine.routes.draw do
#whatever
end
# parent_app/config/r...
2012 Dec 01
6
Why does 'extend ActiveSupport::Concern' cause `undefined method 'recycle!'`?
...orking 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
end
end
end
# code in my rails app where engine is implemented
class SomeController
include MyEngine::SomeController
def app_some_method
end
# code that''s available by including the R...
2014 Mar 31
0
Rails Engine ActionController::UrlGenerationError on functional tests
...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: [:show], format: 'json'end
# test/dummy/config/routes.rbRails.application.routes.draw do
mount MyEngine::Engine => '/my_engine'end
# app/controllers/my_engine/cats_controller.rbmodule MyEngine
class CatsController < Applicat...
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:
2016 Aug 24
1
feature request for non-sweave vignettes
...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)$',
output = c('md', 'tex'),
...
)
```
the `tools:::find_vignette_product` function could have
`if (final) c("pdf", "html") else unique(c("pdf", "html", "tex",
engine$output))`
that...
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 =
http://opensvn.csie.org/rails_engines/plugins/engines/CHANGELOG
Regards,
Jon
--
http:/...
2011 Jun 04
1
rails 3 engine under dynamic scope
hello,
i have a rails 3 engine scoped dynamically like this:
scope "/:locale" do
mount MyEngine::Engine => '''', :as => ''my_engine''
end
I can''t seem to be able to set my own locale like this:
my_engine.page_path(page, :locale => ''de'')
the path is generated like this:
/en/page/12345?locale=de
instead of simply:
/de/pa...
2006 Aug 08
1
Suggestion: environment.rb Includes
...ike 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 more automatic and flexible, as with http.conf includes
in Apache:
Include includes/*
Installation scripts can thus add new functionality simply by copying
their boilerplate configurations to an include...
2008 May 07
2
Request for generic engine support
...--------------------
===============================================
A typical OpenSSL CONF file for loading an external engine
---------------------------------------------
# Filename: /usr/local/etc/server.cnf
server_conf = server_def
[ server_def ]
engines = server_engines
[ server_engines ]
myengine = engine_section
[ engine_section ]
# Rename the engine to whatever, if necessary
engine_id = myengine
# external engine location
dynamic_path = /opt/openssl/lib/hpux32/engines/libmyengine.so
#default_algorithms = RAND,RSA
default_algorithms = ALL
# Load and initialize the engine
init = 1
----...