search for: userstamp

Displaying 16 results from an estimated 16 matches for "userstamp".

2006 Jan 20
11
Userstamp Plugin
I''m pleased to announce a new plugin for Rails: Userstamp. You can read my blog post at http://www.delynnberry.com/articles/2006/01/20/userstamp-plugin and/or read all about it at the perminant page http://www.delynnberry.com/pages/userstamp. Any comments or suggestions for improvement are much appreciated. -- DeLynn Berry delynn@gmail.com http://www.del...
2009 Oct 20
0
Userstamp plugin doesn't load in "test" environment - y not?
I''m working on an app. with the userstamp plugin in it (from 2 - 3 years back). In the init.rb file, there''s this: ActiveRecord::Base.send(:include, ActiveRecord::Userstamp) unless RAILS_ENV == ''test'' This causes certain tests to fail since created_by is a required attribute. Does anyone know the idea behind...
2007 Jan 31
1
Just copied my app to another puter, and now...
...quot;=>"index", "controller"=>"account"} NoMethodError (undefined method `current_user'' for User:Class): C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/base.rb:1129:in `method_missing'' /vendor/plugins/userstamp/lib/userstamp.rb:32:in `create'' C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/base.rb:1718:in `create_or_update_without_callbacks'' .blah blah blah.. (if more lines of this would help, let me know.. ---------------------------------------...
2006 Apr 01
5
Triple relationship
Hi list, I need to represent a relationship between three tables: Tags (id, name) Users (id, name, email, ... ) Documents (id, title, ... ) I created a forth table called Assignments(id, tag-id, user-id, document-id, date). I have couple of questions: Should I use belongs-to and has-many to capture this? If so, How can I do that? should I have the id as the primary key in Assignment table or
2009 Oct 08
2
Variable sizes with paperclip
How can i create variable sizes with paperclip. That the user can set the size he want and paperclip makes the picture. I only can create fixed sizes. -- Posted via http://www.ruby-forum.com/.
2006 Apr 03
3
Retrieving a record using created_by
Hello, Thank you all in advance for your help with this. Environment: Windows XP Pro (Development only) Ruby 1.84 Rails 1.1.0 SaltedHashLoginGenerator Plugins: file_column, userstamp I have a user table per the salted_hash_login generator. I have an orders table that has a column named created_by that is updated by the userstamp plugin. I am trying to retrieve all of the orders for a single user (the one logged in) and am not sure how to do it. When I use this code in my o...
2006 Jul 18
1
usermonitor / user stamping active record
Quick question about userstamping records in a similar way to timestamping. There is an example of how this might work at: http://wiki.rubyonrails.org/rails/pages/Howto+Add+created_by+and+updated_by/versions/7 This seems to work fine on my development system. However, I am not sure how the User.current_user method, which i...
2006 Jan 16
16
acts_as_authenticated current_user in a model?
What do I need to do to be able to use an acts_as_authenticated current_user in a model? Is there some sort of include or require I can do some where that would allow this? ********************************************************** Here is what I am trying to do: ********************************************************** class Setting < ActiveRecord::Base before_create :created_by_user #
2006 Sep 09
13
best way to add "created_by" entries to all tables???
Hi, I want to automate somewhat the addition of created_by/updated_by fields on my models (i.e. to include username). What''s the best/recommended way to do this? Would it be to: a) Find out how to extend the ActiveRecord::Base itself (I haven''t extended a class before yet) b) Use a plugin type approach where you have to add a tag manually to each model file which then
2010 Sep 16
3
Resyful authenticatio current_user in model
Hi, I am using Restful authentication for user authentication. I want the current logged in user object in my model property.rb Problem is current_user is not working on model. How can I fix this I need that? Please help me out. Thanks, Mike -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk"
2006 Mar 28
8
Correct way to capture a select param
I''m having trouble capturing the params from a select type form. For text field like this: <%= text_field_tag :courseid %> I''m able to capture the posted value with this params[:courseid] However with a select field like this: <%= select(:course, :id, %w{value1 value2 value3} %> I''m not sure how to capture the posted value. -- Posted via
2006 Feb 14
10
acts_as_versioned and getting authors
Hey guys and gals, I have the following object that has acts_as_versioned: class Note < ActiveRecord::Base acts_as_versioned belongs_to :user end The schema for my notes table is as follows: create_table :notes, :force => true do |t| t.column :id, :integer t.column :noteshare_id, :integer t.column :user_id, :integer t.column :title, :string
2006 Apr 12
0
class attributes and thread safety
Are class attributes thread safe? For instance, the userstamp plugin creates a User.current_user attribute and then it aliases the ActiveRecard create and update methods to write created_by and updated_by attributes using the value of User.current_user. For some reason I can imagine a case where multiple users are logged in at the same time and saving o...
2009 Jul 27
1
Displaying Friends Activity
Hi, I''m wondering the popular methods to display friends activity on user''s profile page. Any docs or tutorial will be helpful. I''m a newbie in RoR Thanks, Arun
2010 Mar 31
1
How to assign currently logged in user name to a table field
..." else flash[:notice] = "Incorrect user/password combination" redirect_to(:action=>"login") end end end I am not using any authentication plugin. I would appreciate if someone could tell me how to achieve this without using plugin(like userstamp etc.) if possible. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe...
2011 Jun 14
3
[3.1.0.rc4] plugin installation
rails plugin install https://github.com/delynn/userstamp.git /usr/lib/ruby/gems/1.8/gems/railties-3.1.0.rc4/lib/rails/commands/ plugin.rb:277: Commands is not a module (TypeError) from /usr/lib/ruby/gems/1.8/gems/activesupport-3.1.0.rc4/lib/ active_support/dependencies.rb:237:in `require'' from /usr/lib/ruby/gems/1.8/gems/activesupport-3.1.0.rc...