Displaying 20 results from an estimated 2000 matches similar to: "Did I miss a meeting?!"
2010 Jan 25
9
skinny Controllers, fat models with REST?
Hi,
I''m really new to rails, so i programmed some stuff and today i read
some things about skinny Controllers, fat models.
My Controllers are really fat now. So i''m asking myself how can i
shrink my controllers and move the code to the models, especially in
fact of REST e.g. in focus on error codes?
code example:
# POST /tasks
# POST /tasks.xml
def create
@authorized
2012 Mar 07
0
LoadError: Expected X to define on gem upgrade
I''m upgrading to the latest version of ActiveAdmin and am running into the
following when trying to start the app:
Expected ../app/model/store/base.rb to define Base
base.rb defines base like:
module MyApp
class Store::Base
end
end
I''ve done some digging and found that ActiveAdmin did some refactoring to derive everything from a BaseController. It also depends on
2001 Aug 28
1
Compile-time warning in readpass.c
The patch below fixes a compile-time warning in readpass.c.
MIME-Version: 1.0
Content-Type: application/aegis-patch
Subject: openssh.2 - Fix warning in readpass.c
Content-Name: openssh.2.C010.patch
Content-Disposition: attachment; filename=openssh.2.C010.patch
X-Aegis-Project-Name: openssh.2
X-Aegis-Change-Number: 10
#
# Fix the following warning in readpass.c:
#
# readpass.c: In function
2010 Dec 20
4
Subselection by URL
Hey guys,
I''m quite new in RoR, so please excuse me when I may ask weird
questions.
I am working on a database frontend. The layout looks mostly like
a has_many bs
b has_many cs
c has_many ds
and so on. Now I want to do some selection. Maybe I want to see all ds
belonging to a specific b. I would like to do it like:
http://my.host/bs/1/ds
When I click around there (add new ds, show a d
2010 Sep 22
8
ActiveScaffold and partials
I was thinking of doing partials as I did in the simple Rails
application I worked on today.
But, since I''m using ActiveScaffold, I didn''t find any *.html.erb in the
views folder of the Rails application that I need to make my partials!
How can I work with partials in ActiveScaffold?
Thanks.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you
2005 Jan 09
0
[LLVMdev] Version Control Upgrade?
Hi everyone,
Reid said:
> Of the tools available, it seems that only subversion, arch, and
> monotone are suitable for our purposes. But, we'd love to hear your
> thoughts; especially if you have first-hand experience with these tools.
Apart from using CVS as a client (as everyone does), I've only ever used
Aegis (previous employer, for ~3 years) and Perforce (the employer
2011 Jul 14
0
subclasses with inherited_resources?
I''m trying out inherited_resources and so far so good. However, one
problem I''ve run into is that it''s very difficult to customize
inherited_resource behaviour in subclasses. Looking through the
source I see it uses things like undef_method and class_attribute.
For example, if I have the following controllers:
class ItemsController
inherit_resources
actions :new,
2008 Jul 30
0
[LLVMdev] Is there room for another build system?
Óscar Fuentes wrote:
> CMake just requires one plain text file named CMakeLists.txt on every
> source directory, and the only maintenance is to keep up to date the
> list of source files of the directory.
Has anyone read "Recursive Make Considered Harmful"?
http://miller.emu.id.au/pmiller/books/rmch/
http://aegis.sourceforge.net/auug97.pdf
I have been using single
2007 May 26
1
make_resourceful 0.1.0 Release!
I am extremely proud to put the code up live for make_resourceful! I
have been astonished by the positive feedback I''ve been receiving
since our talk at this year''s RailsConf. So much pressure to get this
thing out!
If you haven''t heard about it... then check out my slides from
railsconf http://www.hamptoncatlin.com/assets/2007/5/21/make_resourceful.pdf
or listen to the
2007 Aug 29
2
DRY specs for RESTful controllers
Hi,
I''m developing a RESTful Rails application whose code and specs are
becoming increasingly repetitive: every controller does pretty much
the same set of things (give or take the occasional twiddle), for
example, and so every controller spec is almost identical modulo some
names, constants and strings.
The make_resourceful plugin, which autogenerates the boilerplate REST
2012 Oct 01
1
active_model_serializers, more than one level deep of associations, specifying serializers per association
I am assuming this an appropriate place to discuss this, but if it isn''t my
apologies- just let me know. Just a Rails 4-ish thing.
Am attempting to pull AMS (active_model_serializers), strong_parameters,
and the "permitter" strategy that Adam Hawkins is using:
http://broadcastingadam.com/2012/07/parameter_authorization_in_rails_apis/
Code so far is here (in the
2011 May 28
4
how can I investigate when a rspec test fails?
For example:
it "re-renders the ''new'' template" do
# Trigger the behavior that occurs when invalid params are submitted
Sector.any_instance.stub(:save).and_return(false)
post :create, :sector => {}
response.should render_template("new")
end
I have the new template under app/views/sectors but the test says:
SectorsController POST
2008 Aug 24
2
Bug#496367: The possibility of attack with the help of symlinks in some Debian packages
Package: xen-utils-3.2-1
Severity: grave
Hi, maintainer!
This message about the error concerns a few packages at once. I've
tested all the packages (for Lenny) on my Debian mirror. All scripts
of packages (marked as executable) were tested.
In some packages I've discovered scripts with errors which may be used
by a user for damaging important system files or user's files.
For
2008 Mar 16
3
undefined method `redirect_to'
Hi all. I''m getting the following error in my app:
undefined method `redirect_to'' for ActionController::Base:Class
I''m using Windows 2000, Rails 2.0.2 and resource_controller (from
James Golick).
My controller:
class CommentsController < ApplicationController
include ResourceController::Controller
belongs_to :post, :article, :photo
create do
2008 Apr 24
3
DRYing up controllers
Hi
I''m a big fan of plugins such as Resource Controller
http://jamesgolick.com/2007/10/19/introducing-resource_controller-focus-on-what-makes-your-controller-special
However, recently decided I don''t want to depend on a plugin for this,
and would rather stick closer to the rails core.
So does anyone have any cool strategies or ideas for achieving this?
Or is there any move to
2013 Mar 21
3
Announce: Puppet Dashboard 1.2.23 Available
Puppet Dashboard 1.2.23 is a maintenance release of the 1.2 series of
Puppet Dashboard with bug fixes and minor features.
This release is available for download at:
https://downloads.puppetlabs.com/dashboard/puppet-dashboard-1.2.23.tar.gz
Available in native package format in the Puppet Labs yum and apt
repositories at:
http://yum.puppetlabs.com and http://apt.puppetlabs.com
Please report
2008 Dec 19
3
Recommended way of restricting action permissions?
Hi, I just have a "best practices" question. I''d like to block users
that don''t own a particular resource from performing edit/update/
destroy actions on it. Here''s how I currently do it:
## User has many resources, of different types
------- resource_controller.rb -------
before_filter :require_ownership, :only => [:edit, :update, :destroy]
... public
2005 Jan 10
4
[LLVMdev] Version Control Upgrade?
I have used Perforce also and fully agree it's wonderful. The only
concern I have is with their license for open source projects. The only
gotcha is that it must be renewed annually, and they reserve the right
to not renew it (though they say they won't unreasonably deny
renewals). Not sure how much this really matters, as Perforce strikes
me as being one of those "do no
2012 Sep 25
9
Any rails experts able to offer some advice?
Hello all.
#1 I am working on a rails3 gem called Yarder
(https://github.com/rurounijones/yarder). The goal of this gem is to
replace the rails logging system with one that is JSON based rather than
string based.
#2 To this end I also recently asked this list about making the
LogSubscribers subscriptions to ActiveRecord::Notifications configurable
and am looking at submitting a patch
2009 Jun 22
5
has_many through , or habtm , using form
i think there ara two ways of relate products and categories ,
basically i want to fix one product(e.g hp dv7....) to some categories
(notebook,17"notebooks...)
i made a table named categorization(incuding category_id,product_id
fields) then in models i write these codes below
class Product < ActiveRecord::Base
has_many :categories, :through => :categorizations