Displaying 20 results from an estimated 1300 matches similar to: "[BUG ??] 'uses_component_template_root' problems with implementation in component"
2006 Apr 22
5
ActiveRBAC 0.3.1 Released
Hi
I am happy to announce the 0.3.1 release of ActiveRBAC Engine. The
biggest improvement on the 0.3 release is that it runs with Rails 1.1
now.
Get your personal copy now from
https://activerbac.turingstudio.com/releases :)
There is a manual PDF with a tutorial available at
https://activerbac.turingstudio.com/releases/ActiveRbacManual.pdf
which is also included in the full
2007 Jan 19
2
route issue after update to 1.2.1
Updated...(trimmed comments)
$ gem list
*** LOCAL GEMS ***
actionmailer (1.3.1, 1.2.5)
actionpack (1.13.1, 1.12.5)
actionwebservice (1.2.1, 1.1.6)
activerecord (1.15.1, 1.14.4)
activesupport (1.4.0, 1.3.1)
postgres (0.7.1)
rails (1.2.1, 1.1.6)
rake (0.7.1)
rmagick (1.14.1, 1.13.0)
sources (0.0.1)
Updated application...
$ rake rails:update
(in /home/craig/svn/th-db/branches/phase3)
install -c -m
2012 May 01
1
uninitialized constant LoginController in Ruby
This is my environment.rb
# Load the rails application
require File.expand_path(''../application'', __FILE__)
# Initialize the rails application
Qstack::Application.initialize!
require ''koala''
This is my application_controller.rb
class ApplicationController < ActionController::Base
# protect_from_forgery
before_filter :parse_facebook_cookies
def
2007 Jan 09
0
Production Mode with SCGI
Hi,
I have an application running on Apache SCGI (Win XP). Once I run it in
production mode (scgi_ctrl config -S -e production ) I''m getting
stack trace instead of HTTP status 500 (Application Error) and the
error is logged production.log. The application works fine without
SCGI. Your help is highly appreciated....
Thanx
/* production.log */
# Logfile created on Thu Jan 04 16:35:43
2007 Mar 12
0
Undefined method: hashed_password ?
I bought the Agile book to learn Rails, and everything was going
smooth until Iteration F1: Adding Users. I''ve double checked my
code, used the code provided by the book, and still it returns this
same error message:
****
NoMethodError in LoginController#add_user
undefined method `hashed_password='' for #<User:0x473f0d8>
RAILS_ROOT: ./script/../config/..
Application
2008 Jan 16
4
ActionController::InvalidAuthenticityToken in LoginController
Hi,
I''m having a problem trying to get a login controller working. When I
try and post to my login controller I get the following error:
ActionController::InvalidAuthenticityToken in LoginController#login
login_controller:
class LoginController < ApplicationController
def login
case request.method
when :post
if @session[''user''] =
2006 Feb 19
2
instance variables in components not read by component view?
Hi,
I''m trying to write a sidebar menu with dynamic menus, and to do so I
would like to define a list of menus to display within my sidebar
component controller code and pass that list to the component display
view, like so:
# menu_controller.rb
class Sidebar::MenuController < ActionController::Base
uses_component_template_root
@menus = %w{admin user help}
def display
2006 Feb 03
0
component/ajax variable access problem
I''m trying to embed a little image gallery on each page. The photos
need to be different for each page. I just want to use ajax and let
them click on the photo and have it show the next image.
When the page loads, it shows the correct image. But when clicking on
it, it gives an error because it doesn''t know what @images is anymore.
On the view for the home page:
<div
2006 Jan 15
0
ANN: ActiveRBAC 0.2.1 released
Hi, all.
I just want to announce out that I have just released version 0.2.1
of ActiveRBAC.
ActiveRBAC is a component that handles authentication (login) and
authorization (permissions). The aim of ActiveRBAC is to provide the
default authentication and authorization backend for shared Ruby On
Rails components.
You can fetch the current release from
2006 May 31
1
ActiveRBAC 0.3.2 Released
Hi
I am happy to announce the 0.3.2 release of ActiveRBAC Engine. The
only improvement on the 0.3.1 release is that it runs with Rails
1.1.2 and Engines 1.1.2 now.
Get your personal copy now from
https://activerbac.turingstudio.com/releases :)
There is a manual PDF with a tutorial available at
https://activerbac.turingstudio.com/releases/ActiveRbacManual.pdf
which is also included
2006 Jun 14
0
ACTIVE_BRAC engine migration error.
Hello Keegan,
You may already have forgotten about your posting from last month - but I
stumbled across the EXACT same error today, and figured out a way around
it.
The difficulty stems from you running under Windows XP, probably running
InstantRails, right?
I fairly quickly discovered that the reason things were not working
according to the ActiveRBAC Manual was that
the code for
2006 Feb 23
20
ActiveRbac 0.3 release - We''re now on Engines
Hi
I have just released the 0.3 revision of ActiveRecord - make sure to
get the fresh, hot packages from
https://activerbac.turingstudio.com/releases
What is ActiveRBAC?
-------------------
ActiveRBAC is a Ruby on Rails library that provides a full stack RBAC
(Role Based Authorization) system with user, group, role and
permission management. It provides models and controllers to edit
2006 Jun 09
5
ActiveRBAC?
How''s the experience with using ActiveRBAC? For my "next 4 days with
rails" :P I''d like to consider adding Role-based access to the To-Do
List application in the original "four days w/ rails" tutorial.
Just wondering if ActiveRBAC would be a good place to start? Thanks!
For those who are wondering: https://activerbac.turingstudio.com/trac
Cheers
Mohit.
2006 Mar 11
0
ActiveRBAC
Has anyone used ActiveRBAC for a commerical/production task?
https://activerbac.turingstudio.com/trac/wiki
Is is secure?
Is is easy to incorporate into a project?
Thanks,
NK
--
Posted via http://www.ruby-forum.com/.
2006 May 29
0
using components to reuse code
the following is the code of the controller, under the dir
components/test/:
class Test::GroupsManController < ApplicationController
uses_component_template_root
def add_to_group
@account = Account.find_by_nick(@params[:nick])
# render :text => "#{session[:account_id]}
#{Group.find(session[:group_id]).owner_id}"
if (session[:account_id] ==
2006 Jan 14
0
testing template components
Hi,
I''m plowing through the template section of "Agile Rails", specifically the
stuff starting on P. 364. What is a good strategy for testing components?
My initial thought is to mimic the Rails application "test" directory. No
problem.
Next copy the setup method, and set it up like so -
class SidebarControllerTest < Test::Unit::TestCase
def setup
2006 May 05
2
newbie ruby string match question
All,
I want to know in the Application.rb controller if I''m on the login screen.
When I''m on the page I care about the controller variable is
"#<ActiveRbac::UserController:0x408b3d6c>"
So I want something like:
if controller contains ActiveRbac::UserController
What is the right syntax for the above?
Thanks
Greg
--
Greg Freemyer
The Norcross Group
Forensics
2006 Feb 27
2
Publishing a Plugin via ./script/plugin
Hi
How do I publish a plugin so I can download it via ./script/plugin.
I''ve put my plugin (ActiveRBAC) on http://wiki.rubyonrails.com/rails/
pages/Plugins but seemingly ./script/plugin discover does not find it :/
Even if I do
./script/plugin source \
https://activerbac.turingstudio.com/source/active_rbac/trunk/
active_rbac
it does not appear on ./script/plugin list.
2005 Nov 19
1
How I provide a session object to Functional Tests?
People,
I''m looking at p. 152 in the Rails book where he talks about testing
controllers [ functional tests ].
First he shows a method, test_login_with_valid_user, which tests
that it''s possible to login with a valid user/password combo.
Then, he talks about extracting the code he just wrote and placing it
into a login method inside of test_helper.rb
Once the method is there,
2007 Oct 05
7
Trouble with text_field_tag
I am trying to implement a basic login page:
login.rhtml
1 <fieldset>
2 <% form_tag do %>
3 <label for="name">Name:</label>
4 <%= text_field_tag :name, params[:name] %>
5 <label for="password">Password:</label>
6 <%= password_field_tag :password, params[:password] %>
7 <%= submit_tag