I added active scaffold  for my users table with this configuration:

  active_scaffold :users do |config|
    config.columns.exclude :cached_fb_object, :shortlisted_users
    config.action_links.add "message", :label => "message", :type
=> :record, :page => true
    config.action_links.add "profile", :label => " facebook", :type
=> :record, :page => true

  end
  def message
    redirect_to "/notifications/admin?to_id=#{params[:id]}"
  end

  def profile
    user = User.find(params[:id])
    redirect_to "http://www.facebook.com/profile.php?id=#{user.fb_id}";
  end


I have a status column of type boolean for user.  When I try to change
some of the users from false to true, I does not update, but I also
dont get any error or clue as to what is going on .



I tried editing the same user by manually in the console with:
u = User.find_by_name 'foo'
u.active = false
u.save

and that works.  What could be the problem and how can I go about
debugging this?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/activescaffold?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to