Displaying 20 results from an estimated 1100 matches similar to: "What is require ''digest/sha1''?"
2006 Jul 06
5
What is protected?
In http://www.aidanf.net/rails_user_authentication_tutorial there is the
string/method
protected
in the model. What does it do? Can''t find that in
http://api.rubyonrails.org/.
--
Posted via http://www.ruby-forum.com/.
2006 Jun 24
7
Newbie Q: "user" variable in every view?
Newbie to RoR -- as a long time Java Struts/etc. guy it is an awesome tool!
I have implemented some basic login/session stuff with the help of a great
tutorial, props to the author (
http://www.aidanf.net/rails_user_authentication_tutorial).
I have a trivial instance method in ApplicationController, which just grabs
the User object from the session.
def current_user
session[:user]
end
2006 Jun 07
3
Question on login generators, plugins
Not sure if I want to build my own or use something already built that''s out
there.
This is the first step in my project though and a major one, so some of my
requirements would be:
1-The ability for a user to register themselves
2-Email / link activation
3-Access levels (or ACL control - I think they are basically the same).
4-The ability to track users either through session or cookies
2006 Jun 15
2
ruby/rails users in Ireland - interest in forming a user group?
Hi all,
I''m interested in starting a ruby/rails user group in Ireland and I''m trying
to gauge the level of interest. So if you''re interested please get in touch
(aidanf at gmail.com). I would also appreciate any suggestions/pointers
about starting/organizing a user group.
cheers,
AF
-------------------------------
http://www.aidanf.net
2006 May 29
8
Rails and user authentification
I am a the point now where I have to add user authentification to my
application.
Anyone can point me toward an easy to use / secure library? I know about
ActiveRBAC and was wondering if there is anything else that I should
consider.
Thanks!
--
Posted via http://www.ruby-forum.com/.
2008 Jan 09
4
Problems with widgEditor (HTML rich text editor)
Hello, I need a HTML rich text editor for a field, and widgEditor seems
to be just what I need:
http://www.themaninblue.com/experiment/widgEditor/
I''ve installed it, following the Aidanf.net''s post:
http://www.aidanf.net/adding-a-rich-text-editor-to-your-rails-application
But althougth it displays well, I can''t write inside; as if it was
Read-only!! I can''t
2006 Jul 31
0
validates_confirmation_of won''t work
Hello folks, this is the first time I''ve written to this forum. If
there''s already a topic on this, forgive me but the search isn''t working
right now.
I seem to have a problem validating confirmation of a password. The
first two snippets are some model code and some test code that work just
fine:
----------------------------
class Challenge < ActiveRecord::Base
2006 Jun 13
5
Can RoR handle a lot of traffic?
And compared to PHP?
--
Posted via http://www.ruby-forum.com/.
2006 May 24
5
Starting on the Ruby Rails path
Hi all, I''m a web designer/-developer. I found Ruby and Ruby on Rails,
and as I can understand (for now) this is what I''ve been looking for.
I''m really exited about this. Prior to this I''ve used Lasso and PHP.
But a few questions (sitting on Mac OS 10.4.6). I tried to install
according to this:
2006 Jun 07
10
RoR with Apache2 - performance?
How is the performance running RoR with Apache2 compared to running it
with PHP?
--
Posted via http://www.ruby-forum.com/.
2006 Aug 17
4
Migration newbie
In an migration file there is one up and one down method. Below is from
Agile Web Development with Rails:
class CreateOrderHistories < ActiveRecord::Migration
def self.up
create_table :order_histories do |t|
t.column :order_id, :integer, :null => false
t.column :created_at, :timestamp
t.column :notes, :text
end
end
def self.down
drop_table :order_histories
end
end
Why is there a drop
2006 Jul 07
2
How does layouts work?
When creating a scaffold you get a layout file. How does it work? I
thought I would find the var @content_for_layout in the controller, but
I didn''t. Where is layouts defined or controlled?
--
Posted via http://www.ruby-forum.com/.
2006 Jun 07
4
Table names
Can I use the table name "adm_users" (mysql)? Will that give the model
name "adm_user"? Or should it be "admusers" and "admuser"?
--
Posted via http://www.ruby-forum.com/.
2006 Jun 14
13
A good tutorial
Are there any other tutorial than "Agile Web Development with Rails"
that you can suggest? So far I can''t say that RoR has been easy to
learn. :-)
--
Posted via http://www.ruby-forum.com/.
2006 Jun 07
16
How dows RoR work?
This is so frustrating. Is RoR that easy to learn or is it hype or is it
just me? I wonder how many newbies like me are surfing the docs trying
to get a clue of the basics. Every tutorial I find is much the same, and
seems to skip the fundmental parts. How should you understand the Ruby
API http://api.rubyonrails.org/?
What is < ActionController::Base? Can''t I set a cookie under
2006 Jul 14
6
Don''t understand :: in ActionController::Base
Maybe this should apply to Ruby forums directly, but I''ll try here.
I understand the concept of classes and subclasses thanks to the
excellent "Programming Ruby - The Pragmatic Programmer''s Guide".
However, I don''t understand what :: signify in terms of inheritance,
parent and child in e.g.
ActionController::Base
--
Posted via http://www.ruby-forum.com/.
2006 Jul 12
5
File manipulation
What are the possibilities of file manipulation in RoR? How do you
create a .html or .rhtml file with ruby to be placed in the public
folder, with custom content?
Btw, where is RoR root? Is that ''public''?
--
Posted via http://www.ruby-forum.com/.
2006 Aug 02
2
Mongrel crashes whenever an exception is raised
Hi all,
I have a rails app running on mongrel on freebsd using mongrel 0.3.13.3 with
ruby 1.8.4.
Mongrel dies every time the application generates an exception. I have the
same setup running on a linux box without any problems.
Mongrel crashes with the following error:
Bus error (core dumped)
And the following message in /var/log/message
kernel: pid 57638 (ruby), uid 0: exited on signal 10
2006 Jun 30
14
Saving boolean attributes
Hi,
I''m just learning Ruby on Rails and ran into something where I know I''m
either doing something very stupid or I''m missing something.
My model as a boolean attribute called active_flag. In my Sql Server
database this is stored as a bit value. I then setup a method in my
controller called "deactivate". This is very simple, it does:
def deactivate
2010 Nov 29
2
R equivalent of Beaton's Sweep algorithm
I'm looking for an R equivalent of Beaton's (1964) Sweep algorithim for
partial inversion of a
matrix by pivoting.
It implemented in SAS/IML as sweep(matrix, indices), described here
http://support.sas.com/documentation/cdl/en/imlug/59656/HTML/default/langref_sect266.htm
and here for python
http://adorio-research.org/wordpress/?p=262
--
Michael Friendly Email: friendly AT yorku