similar to: Listing Actions

Displaying 20 results from an estimated 3000 matches similar to: "Listing Actions"

2007 Mar 06
15
mocking missing methods
Hi folks. So I''m using mocha on a ruby project, and I really like it. One thing I''ve noticed is that it can be a bit "surprising" when I''m mocking methods that don''t exist on an object, and I think there''s an easyish fix. At the moment, you use sheep = mock() to create a mock sheep. What I''d like to do is something like sheep =
2012 Sep 22
4
Class, Module, Object
>> reload! Reloading... => true >> puts Class < Module true => nil >> puts Module < Class false => nil >> puts Module < Object true => nil >> puts Object < Module false => nil >> Object.parent => Object The above indicates that the Class object instance inherits from the Module object instance and the Module object instance
2006 Jul 05
2
Serialized object behaves weird
Hi! I got a class named EinsatzFilter which I serialized to session. Before saving to session it works afterwards I keep getting the message: "undefined method `to_s'' for #<Person:0x38c6ab8>". "Person" is a from ActiveRecord::Base inherited class. Code: class EinsatzFilter include ApplicationHelper attr_reader :personen, :monat, :projekte, :kunde
2006 Jun 22
4
Authorization Plugin 1.0 release candidate + 3 test apps
In honor of RailsConf, I''m releasing an authorization plugin with 3 test apps that show you how to use the system. A reasonably lengthy description can be found here: http://www.writertopia.com/developers/authorization I will also be talking about the plugin''s architecture in my RailsConf talk on Saturday. Some features: - Nice English-like way of expressing permissions through
2006 Mar 26
3
Using a Gem in your App without installing to the system
Does anyone know how to use a gem without installing it to the rails installation? For example, I can download the Money gem package from http://dist.leetsoft.com/ but if I don''t have the ability to install a gem at my hosting provider, how can I use the gem in my app? Cheers, Dan
2006 Jun 29
6
Naming Convention for Controllers?
Hello! I just read DHH''s presentation pdf. In his examples, he wrote PeopleController instead of PersonController. I''ve been using singular words in controller''s name. Which is more common? Thanks. Sam -- Posted via http://www.ruby-forum.com/.
2006 Jul 25
1
Managing backtrace
I''m writing a method_missing handler to "automagically" create assertions from predicate functions. So, for example, one use might be: assert_not_include ''joes@shmoe.com'', response.to -or- assert_include ''info@mydomain.com'', response.from The code is working properly, but when I trigger an assert, the backtrace shows something like:
2006 Feb 09
4
Setting up Ruby + RubyOnRails on the new intel mac (any feedback?)
Hi I''m about to attempt to setup RoR on an iMac powered by an Intel core duo. Before I start, is there anyone who would have some feedback about a similar setup (and likely, the caveats hidden down there) ? thanks! Thibaut -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 May 19
2
Problems at running Rails at the first time
Well, i got familiar with writing Ruby scripts the last days and thougt to write a web application with a framework. First steps was Rails. I successfully installed Gems, Action Web Service and Rails, at least the installer said so... :D So I took a tutorial to write a small app, but I fail in the step startig Rails with the command "rails myappdir". There are some warnings and error
2005 Sep 27
6
Locomotive 0.2.4 for Mac OS X 10.3+
I am pleased to announce the newest release of Locomotive! http://locomotive.sourceforge.net Mostly a bug fix release. If you are using Locomotive on 10.4 you should definitely upgrade. New in 0.2.4 ============ * Rename application entries in status window * Run/Restart/Stop buttons now immediately update * Bundle choosing is fixed for Mac OS X 10.4 * Missing gem dependencies in Rails 0.13.1
2006 May 12
12
Anyone tried the recent Mac OS X Security update?
It includes a patch for Ruby. I have already installed 1.8.4 from source, and updated my PATH to look in /usr/local first, so I don''t imagine that anything Apple does to "their" copy of Ruby will have any impact on me, but I''m wondering if the changes to their Ruby is something that needs to be done to 1.8.4 as well. Thoughts? Walter
2006 Jan 19
4
UserEngine - rake bootstrap aborted => undefined method `synchronize_with_controllers'' for Permission:Class
Good day all. I have successfully installed Engines and LoginEngine and LE is setup and running correctly. However, after installing and setting up UE, when attempting to run the rake bootstrap method I get the following error: undefined method `synchronize_with_controllers'' for Permission:Class My environment is Rails 1.0.0 Ruby 1.8.2 WinXP WebBRICK MySQL 4.1.14 I found the following
2006 Apr 27
7
Role Based Authorization recipe implementation?
i got the rails recipes book, i have now an auth system for users without problems, now i want to made a role based acces for my app, im following the "Role Based Authorization" recipe of the book but i cant make it to work even when the tables created and correctly added data manually definig the roles and rights. als i dont know how to define a right for use all the actions in a
2005 Dec 09
7
UserEngine - rake bootstrap aborted
Hi there, I''ve just installed login_engine and user_engine from the repositories, followed the setup procedures as documented in: vendor/plugins/user_engine/README But I''m getting the following failure: vince@vaio:~/Projects/Booking$ rake bootstrap (in /home/vince/Projects/Booking) rake aborted! undefined method `edit'' for class `UserController''
2006 Dec 20
7
has_many :through does it support collection_singular_ids ?
Good evening list members, I have the following model: class Author < ActiveRecord::Base has_many :authorships has_many :books, :through => : authorships end Should I be able to do the following? Author.find(:first).book_ids = [1,2,3] I ask, because it doesn''t. The docs state that it should, but it doesn''t specialise in the case of a :through This
2006 Jan 03
7
best authorization?
Hello, I want to allow some users to manage other user accounts, but do not want them to manage the admin account. I have tried auth_generator, login_engine and user_engine I am having a hard time gettign this to work. Looking for advise and help. Thanks Frank -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 May 09
3
Need Login/Authorization/User Management Advice
I''m new ot rails and am revamping one of my first rails projects and would like some advice on user authentication and management. In my app I implemented the basic user login functionality as it is in the Agile Web Developement book. Though it works great I''d like a bit more functionality such as: user levels/roles (i.e level1, level2, level3, admin) type permission,
2006 Feb 08
2
Protecting controllers - looking for a DRY solution
Hello everyone, I''ve got several different user roles (i.e. admin, user, guest, ...) and have set up a bunch of controllers for each user role. I''m trying to set up some sort of validation that the user accessing e.g. the admin/subjects controller has the ''admin'' role. The brute force way to do this would be something like: - for each controller, put in
2006 Mar 18
24
rails is extremely hard to install
I''m on Mac OSX and I''m about to rip my hair out over how hard it is to install rails. I''ve installed rubygems and am typing "ruby setup.rb" in the command line and get "No such file or directory." I''ve never had to use command lines before so this is alien to me. Can''t they just make installation GUI-based for non-geeks like
2005 Dec 25
2
How do I install user_engine & login_engine?
Hello, I have a Mac & PC and want to install these plug-ins. I do not understand the svn, what commands do I use? Thanks Frank