search for: user_url

Displaying 13 results from an estimated 13 matches for "user_url".

Did you mean: user_uri
2008 Mar 24
2
link_to_remote and restful routes/urls
is there a way to access a restful resource with mike''s new link_to_remote helper? something like: <%= link_to_remote h(user.name), :update => "div_id", :url => user_url(user) %> of course, that doesn''t work. i have also been trying things like: :url => controller.asset_host + "/users/#{user.id}?method=get" %> to no avail.
2011 Jun 01
7
desperate, errors with file upload
hello, i implementing a file upload using paperclip plugin. i getting the following error [1] when uploading a file. I''m using the gems rails v2.3.8 and paperclip v2.1.6. the parameter hash looks like [2], the model like [3]. Interesting is that i get two different errors, on the localhost with webrick it says: Status: 500 Internal Server Error no marshal_dump is defined for class
2010 Feb 26
2
Routing Error using Paperclip
...y I am getting a routing error when I add Paperclip support. I have another test app when similar code is working. I created a new test app first without Paperclip support and it was doing the CRUD operation fine. However when I added Paperclip support I get the following error? Routing Error user_url failed to generate from {:action=>"show", :controller=>"users", :id=>#<User id: nil, name: "Rajinder", surname: "Yadav", email: "test-zuv13RyHHZkAvxtiuMwx3w@public.gmane.org", password: "hello", membership_level: 0, location:...
2007 Nov 18
9
Not sure why this is failing
...plicationController def create @user = User.new(params[:user]) @address = Address.new(params[:address]) @user.address = @address respond_to do |format| if @user.save flash[:notice] = ''User was successfully created.'' format.html { redirect_to user_url(@user) } format.xml { head :created, :location => user_url(@user) } else format.html { render :action => "new" } format.xml { render :xml => @user.errors.to_xml } end end end end -- Posted via http://www.ruby-forum.com/.
2009 Feb 08
2
SocketError in EmailController#correspond
...@title = "Email #{recipient.name}" if param_posted?(:message) @message = Message.new(params[:message]) if @message.valid? UserMailer.deliver_message( :user => user, :recipient => recipient, :message => @message, :user_url => profile_for(user), :reply_url => url_for(:action => "correspond", :id => user.user_name) ) flash[:notice] = "Email sent." redirect_to profile_for(recipient) end end end end -- Posted vi...
2006 Aug 17
0
redirect_to POST?
...he DB for that person, however I''m also trying to stick to REST principles otherwise. My idea was to have a before_filter :check_user that checked to see whether this user existed or redirected to a POST users_url() to automatically create the user, which would then redirect to a GET user_url(:id => new_user_id). Is there a way to redirect_to a POST, or should I forget about REST for this circumstance and just do the user creation in the before_filter? Thanks! -- Posted via http://www.ruby-forum.com/.
2011 Nov 18
0
Jquery dialog
...ge,Whenever i submits, via ajax the data gets stored but not the page gets reflected. My controller def send_message @message = current_user.messages.build(params[:message]) @message.receiver_id = @user.id respond_to do |format| if @message.save format.html {redirect_to user_url(current_user)} format.js end end end View file %div.jqmWindow#dialog %div.dialog_content -form_for Message.new,:url=>''users_message_path'',:remote=>true do |f| =hidden_field_tag :id,@user.login =f.text_area ''content'',:...
2007 Apr 08
13
attachment_fu thumbnail not created
I followed the instructions on Mike Clark''s weblog and everything works perfectly except the thumbnail column in my DB is alwas NULL. I''m using S3 as my storage system. Anyone else having this issue with thumbnails? has_attachment :content_type => :image, :storage => :s3, :max_size => 500.kilobytes, :resize_to =>
2008 May 03
2
ActionMailer Multiple recipients
...t;," 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_for(:action => "correspond", :id => user.screen_name) ) flash[:notice] = "Email sent." redirect_to profile_for(user) end end and in models/user_mailer....
2008 Mar 03
15
update_attributes not updating
...why that might be? here is my code: controller: def update @user = User.find(params[:id]) respond_to do |format| if @user.update_attributes(params[:user]) flash[:notice] = ''Your Information was successfully updated.'' format.html { redirect_to(user_url(@user)) } format.xml { head :ok } else format.html { render :action => "edit" } format.xml { render :xml => @user.errors, :status => :unprocessable_entity } end end end view: <% form_for(:user, :url => user_url(@user), :html =...
2008 May 28
3
Newbie: Searcing database via user form input?
Does anyone have a tutorial on adding new parameters to the paramaters list and then creating find conditions around them? I''m wondering how I can get my index page to list only the items where some of the the databases fields match user form input. index.html.erb would be calling itself with a new parameter :searchdata So far the index.html.erb has... <% form_tag({ :action =>
2009 Jan 16
16
Testing arbitrary post action parameters
I am working on our (newly renamed) authentication feature. The current scenario is: Scenario: Non-administrators should not set administrator ability Given I have no users And I add a user named "admin" as an administrator And I add a user named "myuser" as not an administrator When the user named "myuser" authenticates And the user
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 =>