similar to: ActiveRecord save-update not performed ?

Displaying 20 results from an estimated 400 matches similar to: "ActiveRecord save-update not performed ?"

2007 Aug 30
8
experimental rails story adapter in trunk
For those of you interested in getting a jump on learning about and using the new Story Runner in a Rails app, I''ve added an experimental Rails-Story adapter to trunk. You can see how to use it here: http://pastie.caboo.se/92320 This is PURELY EXPERIMENTAL, however it actually works and will likely not change much in the way that it does work. Happy hacking! David
2007 Nov 12
1
help debugging ActionMailer with restful_authentication?
In a nutshell, I''m using restful_authentication that emails the user when they sign up for an account The development.log file shows the body of the e-mail message being prepped to send out, but doesn''t show confirmation that it made it. When I use gmail''s SMTP server, a Rails exception is thrown because gmail expects an encrypted connection. A different type of Rails
2006 Jul 18
7
Observer not working
Help please. I''m trying to observe a User class, but I can''t get this to work, the after_create method never gets called... (the breakpoint never gets called) app/models/user_observer.rb: class UserObserver < ActiveRecord::Observer def after_create(user) breakpoint setting =
2008 Sep 18
1
user_observer (restful_authentication) causes failure in loading rails
I have restful_authentication in use on an app and it has been working fine, but I recently was changing the account creation flow and needed to enable the UserObserver. I did so by including it in the environment.rb (config.active_record.observers = :user_observer) and Rails wouldn''t start. I got the following error; source/communitysites/vendor/rails/activerecord/lib/active_record/
2006 Jul 07
3
Observer and Plugin conflict...
Hi fellas, I have setup the acts_as_authenticated plugin and activated the UserObserver to send activation emails. I also have a homemade security plugin which adds methods to ActiveRecord::Base like let_read and let_write. On the server start, those two enter in conflict because the Observer does something with the User model but it can''t find the let_read and the let_write
2008 Apr 25
6
ActionMailer
Hi all, I need a help. I have got a user registration form, where the user signs up and then an activation link is sent to the user email id for activating his/her account. Now I need to send an another email to the user, only after he logs in for the first time in my site, then the second email should be sent. Can anybody give me some suggestion on how to do it ?? NB: When the user clicks on
2007 Jan 18
1
spec''ing models with observers that send mail
I''m spec''ing a model with an observer that sends mail. Mailers behave similarly to controllers, so to make the whole thing work, I believe something like integrate_views has to be available. Has anyone dealt with observers and ActionMailer? Thanks
2007 Feb 16
4
Auto detect URL for ActionMailer?
Hi, how can I call the url in an actionMailer definition - so that it automatically detects what the rails application server is and puts it in the url that is mailed to the client? (I don''t want to have to change it every time the hostname is changed - I''d like the application to auto detect what the host is - whether it''s localhost:3000 or my own website... example:
2009 Jun 15
1
NoMethodError: undefined method `password_reset_instructions' for UserNotifier:Class
Any ideas what would be causing this? NoMethodError: undefined method `password_reset_instructions'' for UserNotifier:Class from /Library/Ruby/Gems/1.8/gems/actionmailer-2.3.2/lib/action_mailer/ base.rb:400:in `method_missing'' *** app/models/user_notifier.rb class UserNotifier < ActionMailer::Base def signup_notification(user) setup user subject ''Your new
2009 Nov 30
0
Problem with ActionMailer in controller specs - works in model specs
I am having a problem with my controller tests that include ActionMailer. The tests work for the model test, e.g. I have a UserNotifier model that sends account activation e-mails and the spec''s work fine. When I run the UsersController spec''s that test some of the same functionality (e.g. uses the UserNotifier model), I get: ArgumentError in ... wrong number of arguments (0
2010 Aug 17
2
[Form] Method POST & PUT problem
Hello, I have a form that should be a POST method, but Rails insist to put a hidden field "_method" that has the value "put" does anyone knows why? Thanks, David Sousa Controller: ------------------------------- def new @user = @current_user end ------------------------------------------- View: ------------------------------------- <% semantic_form_for @user,
2007 Mar 19
2
Controller url_for modifies request object?
Hi, In my controller, I do something like this: MyMailer.deliver_signup_notification(url_for(:subdomain => account.subdomain, :controller => ''hello'')) And a few lines later: redirect_to :action => ''index'' Much to my confusion, the redirect routes me to the subdomain used in the url_for. I''ve tried redirect_to :action =>
2013 Jun 06
1
Introducing MailJack: autogenerate querystring parameters that are appended to links in your emails
Hey All, I just wrote a nifty gem and wanted to share(its one of my first). Wondering if anyone would be so kind as to tell me what they think and/or code review it. MailJack - its like LoJack but for the links in your emails. The problem this solves is the ability to track click throughs in emails. https://github.com/synth/mail_jack Basically, you specify what mailers you want to track
2007 Oct 24
1
Attachment_fu and observers/emailing
Hi all, I''m developing a site where a user can upload their CV/resume with a profile, and am using restful_authentication for this with attachment_fu to handle the file uploading. When a user creates their profile/user account, I''ve got an observer that will email the site admin with a copy of the uploaded CV. My user_observer looks something like: class UserObserver <
2010 Oct 03
1
Rails 3 observers
Rails Guides says: ...the UserObserver ... would be saved as app/models/user_observer.rb and registered in config/environment.rb this way: config.active_record.observers = :user_observer But the observer registration above doesn''t work because there is no ''config''. For now, I''ve put it in the config/environments/[APP_ENV].rb but that seems really sloppy and
2009 Jan 18
3
ActionMailer and url_for in helper methods
Hi, I was wondering how to get url_for to work inside ActionMailer. I did research on the web but I can''t seem to find something that fits what I need. In my application, each user can specify their custom domain to access their. I have an ActionMailer that sends them notifications of changes that occur. In there, I have a breadcrumbs helper method, which generages something like:
2006 Jul 10
7
How to obscure/encrypt password parameter?
Hi all- I am building an application that includes a login screen. During development I found that user passwords are logged by Rails in plain text -- this will not be acceptable to my users. Is there a way to obscure/encrypt incoming password parameters or not write them to the log files at all? One thought was to use Javascript, but I was not sure how secure that would be. Thanks, Josh
2006 Jul 26
8
change text_field_tag class
in my booking / _form I have the following input fields : (startdate and endate) <div> <label for="startdate">Booking Start Date</label><br /> <%= text_field_tag(''startdate'', @startdate, {:class => @startdateclass, :readonly => "readonly", :maxlength => "25"} ) %> <%= observe_field("startdate",
2007 Jun 26
3
what is the :or parameter in a submit_tag ?
I read the following tag in teh Beast example <%= submit_tag''Login'', :or => link_to_function(''forgotten password'', "$(''reset-password'').toggle();") %> I understand the link_to_function, but what is this :or parameter used for ? the link doesn''t appear, so it cannot be used... thanks for your lights kad --
2006 Aug 04
3
<img onclick> vs link_to_remote()
In one of my view , I have an image the user need to click to close a <div>selections</div> added by an Ajax call. if I use : <img src ="/images/icon_closeitem.gif", size="16*16", border="0",alt="Close Selection", title="Close", onclick="<%= remote_function(:url => { :controller => ''property'',