Displaying 9 results from an estimated 9 matches for "param_post".
Did you mean:
param_list
2007 Dec 17
2
undefined method `param_posted?'
I upgraded an app to 2.01 and can''t figure out why I am getting a
undefined method `param_posted?'' for #<ControlPanelController:
0xb748ba18>
The controller should be inheriting this.
class ControlPanelController < ApplicationController
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ru...
2009 Feb 08
2
SocketError in EmailController#correspond
...ossible
solutions???
Thanks.
class EmailController < ApplicationController
layout "site"
include ApplicationHelper
include ProfileHelper
before_filter :protect, :only => [ "correspond" ]
def remind
@title = "Mail me my login information"
if param_posted?(:user)
email = params[:user][:email]
user = User.find_by_email(email)
if user
UserMailer.deliver_reminder(user)
flash[:notice] = "Login information was sent."
redirect_to :action => "index", :controller => "site"...
2012 Apr 25
8
showing error (gsub) when switching from session to cookies
...C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/cookies.rb:65:in
`[]=''
app/controllers/user_controller.rb:27:in `login''
user_controller
if request.get?
@user = User.new(:remember_me => cookies[:remember_me] || "0")
elsif param_posted?(:user)
@user = User.new(params[:user])
user = User.find_by_screen_name_and_password(@user.screen_name,
@user.password)
if user
user.login!(session)
if @user.remember_me == "1"
cookies[:remember_me] = { :value => "1",
:expires => 10.years.from_now }
user.authorization_...
2010 Mar 10
6
Email section
Sir , I want to implement email section in ma web application..
so i found the method ''server_setting'' for it...
Following is the method:
config.action_mailer.server_settings = {
:address => "smtp.gmail.com" ,
:port => 25,
:domain => "gmail.com" ,
:authentication => :login,
:user_name => "manish" ,
:password =>
2009 Nov 11
1
getaddrinfo: nodename nor servname provided, or not known
...ails locally, i need to
use :sendmail instead... However - I havent seen any decent examples
of how to get this configured to be able to send emails within my
local area.
Within my email_controller I have the following code:
def remind
@title = "Send me my login information"
if param_posted?(:user)
email = params[:user][:email]
user = User.find_by_email(email)
if user
UserMailer.deliver_reminder(user)
flash[:notice] = "Login information was sent."
redirect_to :action => "index", :controller => "site"
else...
2010 Feb 08
0
recommending friends, using RoR's Mailer
...de used to send a user
their username. Only difference is, I need to change the ''''user =
User.find_by_email(email)'''' part as obviously, I dont want to only
email people who are already on the site.
def invite
@title = "Invitation"
if param_posted?(:user)
email = params[:user][:email]
user = User.find_by_email(email)
if user
UserMailer.deliver_invite(@user)
flash[:notice] = "Invite sent."
redirect_to :action => "index", :controller => "site"...
2008 May 03
2
ActionMailer Multiple recipients
...y.new
args = params[:id].to_s # params[:id] is an array of user screen
name. ex: j_doe, d_john
lines = args.split(",")
for line in lines
recipient = User.find_by_screen_name(line)
email = recipient.email.to_s + ","
address << email
end
if param_posted?(:message)
@message = Message.new(params[:message])
if @message.valid?
UserMailer.deliver_groupmess(
:user => user,
:recipient => address,
:message => @message,
:user_url => profile_for(user),
:reply_url => url_f...
2007 Aug 09
3
method_missing error......need some eyes for this one
...sh {}
Response
Headers: {"cookie"=>[], "Cache-Control"=>"no-cache"}
_________________________
user_controller.rb
#Edit the user''s basic info.
def edit
@title = "Edit your User Information"
@user = User.find(session[:user_id])
if param_posted?(:user)
attribute = params[:attribute]
case attribute
when "email"
try_to_update @user, attribute
when "password"
if @user.correct_password?(params)
try_to_update @user, attribute
else
@user.password_errors(params)
end
end
e...
2010 Jul 31
4
Exception: can't dup Symbol
Hey everybody,
I''m trying to test a little piece of code I wrote, and I get the
following error:
Exception: can''t dup Symbol
It happens in the following line: try_to_login @valid_user, :remember_me
=> "1",
where the function try_to_login is:
def try_to_login(user, options = {})
user_hash = {:screen_name => user.screen_name, :password =>
user.password}