Displaying 20 results from an estimated 5000 matches similar to: "Question on login generators, plugins"
2006 Jul 06
5
What is require ''digest/sha1''?
In http://www.aidanf.net/rails_user_authentication_tutorial there is a
string called require ''digest/sha1'' in the model. What does it do?
Everything else is well explained besides that.
--
Posted via http://www.ruby-forum.com/.
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 May 25
16
yet another rails site - happycarpools.com
I''m pretty much done with a project I''ve been developing to learn Rails,
http://www.happycarpools.com . If you could take a look, that''d be awesome!
Feedback would be even more awesome!
Probably the coolest thing about making this has been seeing how Rails does
*so much* and hardly has any superfluous parts, if any. There are so many
features that I initially
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/.
2006 Apr 15
2
Can''t run MySQL queries
Hi everyone,
I''m having trouble actually running mysql queries. I can connect to the
database, I think, but when a query gets run the following shows up in my
log:
SQL (0.000000) Mysql::Error: Lost connection to MySQL server during
query: SHOW TABLES
Any suggestions?
Thanks!
Daniel Higginbotham
2006 May 18
4
time select with am/pm?
Hi everyone,
Is there a time select helper which uses a 12 hour clock rather than a 24
hour one? Also, does anyone know if :discard_year actually works in
datetime_select now, or how I could find this out?
Thanks!
Daniel
2006 May 23
6
OT: best books
Hopefully this isn''t completely inappropriate, but lately I''ve been curious
about what books people have found most helpful in their development as
programmers. If one of the icons like Dave Thomas, DHH, Mike Clark, Andy
Hunt et al could weigh in that''d be awesome :)
Here are some of my favorites:
Refactoring, Martin Fowler
Mastering Regular Expressions, Friedl
2006 Apr 16
12
tired of using defined? all the time
Hi everyone,
It seems like every time I want to evaluate a possibly undefined variable I
have to use defined? to see that it exists first, so I can''t simply have
-- if params[:range_start] > 3
or something like it. I need to have
-- if defined? params[:range_start] && params[:range_start] > 3
I can''t even have
-- if params[:range_start].nil?
This is really
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 18
6
Form actions with additional parameters
Hiall,
I want to give the action of a form an additional parameters but can''t
figure out how to do it. My code looks like this
<%= start_form_tag :action => ''create'', next_step => true %>
<%= render :partial => ''user_form'' %>
<%= render :partial => ''community_form'' %>
<%= submit_tag
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 Aug 08
11
Newb question- method not working
I know this shouldn''t be in the view but to test the code it is.
Anyway if I do just session[user] I get back the user id (the id from
the user table)
which is good.
However this code does not work.
<% a = session[:user] %>
<% uname = User.find(:first, :conditions => id = a) %>
<%= @uname %>
TIA
Stuart
2006 Sep 14
4
AWDWR 2nd edition and REST
Question, and I''ll preface it by asking if this is the right list to
be posting questions regarding anything past Rails 1.1.6 , (i.e.
edgerails) ?
In the latest revision of AWDWR there is a sample REST based app.
During the creation of the controller and actions, there is a foot
note that says:
"7. By the time you''re reading this, there may well be support build
into Rails
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 Apr 13
2
acess local variables from helper?
if I call a helper method from inside a partial, it doesn''t appear to have
access to the partials local variables. is there a way to make them avilable
without passing them as parameters?
here''s a simple example
# in the view
<%= render :partial => "my_partial", :locals => :value => 2%>
# _my_partial.rhtml - raises "undefined local variable or
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 12
2
dom id on form_remote_tag
I want to make use of a form_remote_tag to submit a form
asynchronously. Easy done. However, we also want to add an
observe_form tag to check for some value changes while the form is
being entered.
The observe_form tag needs a dom id to work on but I can''t see how to
enter an html option for the dom id of the form on the
form_remote_tag.
Any ideas?
Here is the form tag so far...
2006 Jun 08
19
Agile Web Dev (book) question: errors
This is kind of frustrating (but no doubt helpful in the long run) that
after following along and coding , and d/l the code the same error is
appearing.
For those who are familiar with the depot app, I''ve run into a problem after
fixing the cart to reflect quanitites. I worked through the intended error
messages but now have this appearing:
SyntaxError in StoreController#add_to_cart
2006 Feb 24
8
editing and deleting fields in a vcard
Hi all,
Is there a way in vpim to edit an individual field in a vcard. I have a set
of vcards stored in a db and would like to be able to edit individual fields
in the vcard and then save the vcard back to the db. I didn''t see any
methods for editing a vcard in the api. Do I need to create a new vcard and
repopulate it with all the fields except the one that I''m changing and