Displaying 20 results from an estimated 300 matches similar to: "Problem with the Authorization recipe"
2006 Apr 05
3
Rails 1.1 and webrick/mysql problems
i just upgraded to rails 1.1 yesterday and since then i could?nt make it
work with mysql, for example i have my database "todo" and one table
"todos", i create the app and generate the model but when i try to
generate the scaffold with "ruby script/generate scaffold Todo Todo" i
get this error " error Before updating scaffolding from new DB schema,
try
2007 May 08
2
Is there a way to specify in the rails application which ruby executable to use.
Basically I am stuck with a production app running on Rails 1.1.6
needing ruby 1.8.4, while we are working in trunk on getting Rails
1.2.3 working which needs ruby 1.8.6. I can set the version of rails
using RAILS_GEM_VERSION in environment.rb ... but where can I set the
version of ruby to use?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are
2006 Jun 07
3
Can ruby on rails run multiple in one shared host
I setup 2 RoR but second one cannot be reach, it goes to first RoR App.
Apache2+fcgid+ruby1.8.4+mysql
Thank You
Artit S.
--
Posted via http://www.ruby-forum.com/.
2006 Feb 16
2
Postgresql array converts to string????
Hi
We are using postgresql with rails, we find out that
when we read array from postresql (postgresql support
array type in table) the rails (or postgresql_adapter)
converts the arrays into Strings, example: we have a
data type array in a table which has two cells:
[cell1,cell2], rails will convert them into string
like this {cell1,cell2}. So after received the result
from a SQL request we have
2006 Apr 03
5
Strange Problem with ActionController (I think)
I''m working through the Agile Depot example
I have no idea what I did, but when I try and delete something from the
web page I get this error on the log.
Processing AdminController#destroy (for 127.0.0.1 at 2006-04-02
22:28:06) [GET]
Session ID: 4371bd7ca2cb5ec5e08e60a7590df90a
Parameters: {"action"=>"destroy", "id"=>"5",
2007 Jan 15
7
Yaml Segfaults on ubuntu puppetd client
While running puppetd on a linux client I get the following, the
actual spot that the segfault happens varies, but it always happens.
This is on ubuntu with the stock apt ruby1.8.4 package. Puppet also
installed from apt. Puppet version 0.18.4
It seems very likely that this isnt a bug in puppet per se, but it is
tickling a yaml bug (regardless of where it fails, it is always yaml).
But I
2006 Mar 28
1
server not starting in new Rails 1.1 - lighttpd parser error
I am newbie - needed help,
I just know updated rails1.1
When i start the server I''m getting this error,
------------------------------------------
gbalaji:~/projects/depot gopalbalaji$ ruby script/server
=> Booting lighttpd (use ''script/server webrick'' to force WEBrick)
=> Rails application started on http://0.0.0.0:3000
=> Call with -d to detach
=>
2006 Apr 04
4
Cannot upgrade rails to 1.1, only 1.0. Nubee. Please help
I''ve used putty to SSH in to our solaris system as root:
Here is what happens when i try to install rails:
# gem install rails -include-dependencies -p http://saiproxy:3128
Attempting local installation of ''rails''
Local gem file not found: rails*.gem
Attempting remote installation of ''rails''
Successfully installed rails-1.0.0
So my question is why
2006 Mar 14
3
Check whether externam URL is valid?
Hey,
I have users entering URLs into my app, is there anyway in which I can
check to see if the URLs actually point to something before saving the
user input? Maybe a kind of ''ping''-action that returns true on success?
(btw: does anyone of a tentative release date for Rails1.1? I''ve been
slobbering all over my RailsRecipes book and I can''t wait! Also, Scott
2006 Feb 15
36
Rubuntu Live CD for Rails
Friends-
I am almost finished with a custom live cd called Rubuntu ;-) This
is an ubuntu live cd variant that comes preloaded with ruby and rails
developers in mind. I already have it working with all the basics but
I was wondering what extras people would like to see on this distro.
What editors with what configurations?
What other tools do people really like for rails development on a
2006 May 25
12
RMagick install problems, advice needed
Hi guys, im trying to install rmagick on windows but i have some
problems with the post install, im using win2000, ruby 1.8.4 and rails
1.1, all working well.
Then i downloaded RMagick-1.9.2-IM-6.2.4-6-win32.zip from
http://rubyforge.org/projects/rmagick/ extracted and do the gem install
RMagick-win32-1.9.2-mswin32.gem , the gem was installed sucesfully but
when i do the postinstall.rb i get
2006 Apr 11
3
model classes in different folders
Hello,
I have the following structure:
- app
- controllers
- helpdesk
- call_controller.rb (Helpdesk::CallController <
ApplicationController)
- models
- employee.rb
- department.rb (Department < ActiveRecord::Base)
- helpdesk
- call.rb
- call_history.rb (Helpdesk::CallHistory < ActiveRecord::Base)
Is it possible to have a relationship between
2006 Jun 16
5
[slightly OT] Problem with subversion 1.3.1 on OSX Tiger
I have a subversion repo on a Debian Sarge server. I do rails
development on two Debian workstations (home, work) and also a
MacBookPro.
I installed subversion from Darwinports. Things worked ok for a while
and I did commits from and updates to all three machines until today.
When I did svn status I noticed a lock on the working dir.
$ svn status
? Rakefile
? readme
! L .
.... etc
I cannot
2006 Mar 24
0
Do I need ruby1.8.4 to run 1.1RC1?
Hi List,
I''m successfully running the latest edge rails (I think).
I keep seeing messages in the list about upgrading to ruby 1.8.4, I''m
running 1.8.2. Do I *need* to upgrade to ruby 1.8.4? If so, why
exactly?
Also, any other tips on dependencies for the edge (that can''t be
gleaned from the wiki?)
Cheers,
Ian
2007 Apr 10
8
ferret-0.11.4-mswin32 not compatible with Ruby1.8.4
Just a quick note for future reference - at least for me, ferret won''t
work on Ruby 1.8.4.
gem install ferret
Successfully installed ferret-0.11.4-mswin32
ruby -v
ruby 1.8.4 (2005-12-24) [i386-mswin32]
irb
irb(main):001:0> require ''ferret''
A windows error message box appears -
ruby.exe - Entry Point Not Found
The procedure entry point rb_w32_write could not be
2006 Apr 28
2
["acts_as_authenticated"] << "Role-Based Authorization Rails Recipe"
hi guys,
has anyone here implemented role based authorization from rails recipes
into acts_as_authenticated ? how''s it going?
Case:
there is ONE admin. And MANY users. Admin is the only one who can
create, edit, delete user, etc.. users also need to login, but go to
different pages. do you guys think it''s good to try rick''s
acts_as_authenticated + chad''s
2006 Jun 04
1
Problem with instance variables
Im developing a User model for my application (newbie stuff, but I have
to start somewhere). I followed the tutorial at
http://sonjayatandon.com/05-2006/how-to-build-a-secured-web-application-with-ruby-on-rails/
and decided to add an email field. The problem is that the email is not
being saved on the database and I end up with two email variables:
@email and email.
validates_presence_of
2012 Jun 11
0
Using AuthLogic
Hello, I''m trying to use the authlogic to make my login in my app.
The problem is when I change my user model.
user model:
class User < ActiveRecord::Base
attr_accessible :crypted_password, :email, :password_salt,
:persistence_token, :username
acts_as_authentic
end
create_users migration
class CreateUsers < ActiveRecord::Migration
def change
create_table :users do |t|
2009 Nov 14
3
authlogic fails on existing accounts when crypted_password is blank
I recently ran a migration to add the following to an existing user
model:
t.string "crypted_password"
t.string "password_salt"
t.string "persistence_token"
There is an existing (cleartext) password field, but authlogic doesn''t
seem to be reading that on existing accounts. As a result, all logins
for existing accounts fail.
How can I get
2006 Apr 21
1
Catch authentication result from a model in a controller
Im still following the authorization recipe from the book, now all works
fine but im getting trouble in how handle the model authorization
result, if the user and pass are correct, it goes to a welcome
screen(admin.rhtml) but if wrong the model prints a message in an ugly
exception like page "usr and pass not correct", i want to redirect the
user to the login