Displaying 20 results from an estimated 1700 matches similar to: "Decoupling of ActionPack"
2012 Sep 05
4
Suggestion: render filters
Will not be useful functionality similar
https://github.com/shell/rails3_before_render ? Something like
ActionController filters but not before action. Filters before render. See
also http://www.perfectline.ee/blog/ruby-on-rails-before-render-filter,
http://penkin.co.uk/rails3_before_render-plugin/. And don''t you know gem
for this? Thanks.
--
You received this message because you
2012 Sep 25
3
Proposal for a new ActiveModel::Errors structure
There are few issues with the current ActiveModel::Errors class.
Firstly, when an error is added to ActiveModel::Errors class via #add
method
(https://github.com/rails/rails/blob/master/activemodel/lib/active_model/errors.rb#L294)
its translation is added. It should not be translated when being added, but
only when being read.
The second issue is a bit bigger. We''d like to create
2012 Sep 18
4
multiple modules defining same method included into a class
In Ruby, classes are never closed: you can always add methods to an
existing class. This applies to the classes you write as well as the
standard, built-in classes. All you have to do is open up a class
definition for an existing class, and the new contents you specify
will be added to whatever''s there. In the same regard, if module is
used with the name of a pre-existing module that
2012 Sep 21
2
in Rails, what is the main (global) scope called?
For example, you see files called
rails/actionpack/lib/action_controller/base.rb
which adds methods and such to the open module ActionController. What
scope is ActionController in? Is it just called the global scope?
Obviously, there is namespace resolution lookup. And a good example of
this is in the Base class of the same file. It references one module
like this: AbstractController::Layouts
2010 Jun 24
1
Custom account subdomains with Rails 3
Hi,
I needed to handle custom account subdomains with Rails and I wrote a
simple rack middleware for that http://github.com/drogus/rack-subdomain.
It works by mapping any subdomain to given PATH. For example when user
hits drogus.example.org/account and mapping is /users/:subdomain, it
will map the request to example.org/users/drogus/account
I accomplished it with rack middleware, cause I wanted
2007 Sep 18
10
Routes
hi all,
I want to move some routing tasks out of the router and into the
controller. The goal is to make Merb feel less like mod_rewrite and
give the user more control at the controller. The new Router is
simple: it takes the path_info (not the whole request) then outputs a
controller class and some parameters from the path matching. The rest
of the routing would be done at the controller level.
2012 Sep 15
10
Versioning of Views; Our Approach
My friend Ben Willis and I have developed a gem for the versioning of Rails
views.
https://github.com/bwillis/versioncake
The versioning is done by the naming convention. Image the following
series of files :
show.v3.json.jbuilder
show.v2.json.jbuilder
show.v1.json.jbuilder
create.v2.json.jbuilder
create.v1.json.jbuilder
The developer pre-defines all view versions in their config. When a
2011 May 25
1
warning: toplevel constant SomeController referenced by Admin::SomeController
This issue has been discussed before (http://www.ruby-forum.com/topic/
125392) and after spending a while debugging through this, I still
don''t have a solution. Lets try again?
I have two controllers, SomeController and Admin::SomeController. When
SomeController is loaded first (which happens under spork, found out
by editing ActiveSupport::AbstractController) I get warning: toplevel
2014 Jun 02
3
[LLVMdev] Publication: "SMACK: Decoupling Source Language Details from Verifier Implementations"
Hi,
So, SMACK is a software verifier based around LLVM, and you can find
more info (PDF, title, abstract) about our recent publication here:
http://soarlab.org/2014/05/smack-decoupling-source-language-details-from-verifier-implementations/
I would appreciate if you could add it to your list of LLVM-based publications.
Thanks!
Best,
-- Zvonimir
--
http://zvonimir.info
http://soarlab.org/
2009 Oct 31
3
1.9 Compat and merging mail gem into ActionMailer
Hi all of both RoR Core and TMail.
You may know me better as the maintainer of TMail.
However, TMail has been a bit difficult to get working with Ruby 1.9,
so in the light of that, I sat down over the past few months and wrote
myself an all encompasing mail gem. Mail passes all of its hundreds
of specs equally well in Ruby 1.8.6, 1.8.7 and 1.9.1. Mail reads
every email in the TMail test suite
2018 Jul 26
0
Is decoupling Apache + PHP into separate nodes possible?
On 07/26/2018 04:48 PM, Arun Khan wrote:
> <preamble>
> I have deployed Linux/Apache/PHP (node1) + MySQL (node2) with Security
> Groups (AWS) or iptables controlling who can connect to the MySQL
> server. In topology terms -- a 2 Tier architecture. In AWS - one
> can deploy several such instances behind a ELB. Each LAP instance
> talks to a MySQL RDS. The LAP instances
2012 Sep 28
1
How to Include Associations in #as_json
Hi,
Does anyone know how to include nested associations when overriding a
model''s #as_json method?
Below is my attempt to include direct and nested associations.
NOTE: "office" is a direct association, "company" is nested association
via "office". I''d like both included in the generated json output.
def as_json(options={})
super(:include
2005 Sep 14
2
Fwd: Newbie q: decoupling vorbis from ogg
From: Nathaniel Gray <n8gray@gmail.com>
Date: Sep 14, 2005 11:30 AM
Subject: Newbie q: decoupling vorbis from ogg
To: vorbis-dev@lists.xiph.org
Hi,
Sorry if this is a newbie question. I'm trying to write an OS X
AudioCodec for Vorbis using libvorbis. I'm confused about the
libvorbis dependency on libogg. I thought the vorbis spec didn't
require ogg as the container, but the
2011 Sep 12
2
Using tilt in ActionView?
Hey friends,
I was wondering what is the current opinion on using tilt in
ActionView? Right now, there''s a lot of code in AV::Template/
TemplateHandler etc. which is nicely implemented in tilt. I''m
currently refactoring the AV layer (private interest ;-) using tilt
and it makes the whole thing much more readable and easier to follow.
What do you guys think?
I know there was a
2018 Jul 26
2
Is decoupling Apache + PHP into separate nodes possible?
<preamble>
I have deployed Linux/Apache/PHP (node1) + MySQL (node2) with Security
Groups (AWS) or iptables controlling who can connect to the MySQL
server. In topology terms -- a 2 Tier architecture. In AWS - one
can deploy several such instances behind a ELB. Each LAP instance
talks to a MySQL RDS. The LAP instances are either mod_php or
PHP-FPM. OS -- CentOS, Ubuntu. Debian
2012 Jun 04
13
Nested Resource Route Helpers
Hello all,
I''m working on a Rails app and I have resources nested three deep - let''s
call them user, project, and issues. The route helpers now look like
user_project_issue_path(@user, @project, @issue). Would it make sense for
Rails to guess the @user <https://github.com/user> and @project<https://github.com/project> relations
from @issue
2006 Aug 14
2
ActionPack: number_to_phone error
Question about the number_to_phone function as provided by rails in actionpack:
http://api.rubyonrails.org/classes/ActionView/Helpers/NumberHelper.html
If I do this in my controller:
num = number_to_phone(params[:phone_number])
I get this error:
undefined method `number_to_phone'' for #<TicketsController:0xb7a2bfcc>
Whereas if I do this in my view:
<%
2006 Mar 07
1
Understanding ActionPack
So in order to user form_tag_with_upload_progress, it appears that I
need stuff that''s in the following:
actionpack/lib/action_view/helpers/upload_progress_helper.rb
Do I have to do something specific to get access to this stuff or is it
included automagically?
Thanks,
Wes Gamble
--
Posted via http://www.ruby-forum.com/.
2006 Aug 03
1
Ruby install - actionpack dependency?
I''m new to Ruby, so new in fact that I''m having problems with the
install. The homepage looks good, but the instructions don''t seem to
work for me. I''m trying this on Windows 2003 server.
I''ve downloaded Ruby and installed it, fine.
I''ve downloaded RubyGems and installed it, fine.
The next step is to run ''gem install rails
2006 May 30
4
Rails / ActionPack thread safety
Hi all,
Both the rails book (1st Ed) and the docs on the rails site (*and* the
Mongrel FAQ) tell me that rails (& ActionPack /ActiveRecord) is not
threadsafe. Since I need lots of worker threads in the app I''m working on
(details at the end of this mail) this poses quite a problem for me.
Is the lack of thread safety a conscious design decision (kind of
understandable for rails