Displaying 20 results from an estimated 20000 matches similar to: "Problem with login form in sidebar"
2011 Apr 14
1
a little problem with extJS & log in form
have user_cotnroller
class UserController < ApplicationController
def authenticate
if request.post?
#User.new(params[:userform]) will create a new object of User,
retrieve values from the form and store it variable @user.
@user = User.new(params[:userform])
#@user = User.find_by_id(params[:id])
#find records with username,password
valid_user =
2006 Apr 25
2
agile depot app login failure :(
Hi *,
In an attempt to go back to the drawing board and learn RoR some more -
I have built the depot application from the agile book.
After finishing I tried to create a user for the admin section, however
when ever I go to:
http://localhost:3000/login/add_user
It redirects to the login action, I don''t see the [add user] submit
button??
I am sure this is connected to the
2009 Oct 06
1
Problems Processing multiple form elements generated by javascript actions
Hi all,
After many days of struggling, I have a multi-model form with ajax
elements more or less working, but I''m hitting a wall with a few bugs
that I can''t figure out. Guidance would be very much appreciated.
I''m using the Ryan Bates technique from Advanced Rails recipes to
dynamically add and remove elements on a multi-model form.
2006 Jan 24
3
AJAX Preview & Edit Page Problem
I''m new to RoR and have started building my first application.
I''m building an account sign-up controller and I have two questions:
1. What is the best way to pass form params between methods in my
sign-up controller? The solution I''m using seems too hacky and there''s
got to be a something more elegant. I''m instantiating User.new to
capture the
2006 Feb 27
4
update_attribute with Validation?
Does anyone know of a way to update individual attributes with
validation? update_attribute disables the validation checks in the
record model, so I''m wondering if there''s a workaround for this.
In my application, I want to allow the user to update some or all the
attributes without having to enter :password and :password_confirmation,
both of which are subject to
2006 Mar 28
1
Simple Sidebar Solutions: How does yours work?
I''m working on a simple photo gallery app for personal use and I want to
generalize the sidebar such that in any page (controller or view, I''m
not sure which) I can dynamically add either
1. links to a given sidebar
2. or an entire sidebar.
I know that typo does this, and I''ve looked the code. I think it''s too
complex a solution for my simple site.
2007 Nov 02
4
Login Redirect - Hacking the session[original_uri]
Hi There,
I have several ajax elements that require authorization, but for various
reasons, they can''t pass session[original_uri] to the redirect on user
log in. I''m trying to hack in a uri by passing a param to the login
page.
I can see that the param is passing into the login page, but for
whatever reason, no matter what I do, the user is redirected to the
homepage after
2007 Jan 21
1
Form question
Hey all, this is a pretty simple (I think) question regarding forms
I have two models, one is message.rb
class Message < ActiveRecord::Base
belongs_to :user
validates_presence_of :user_id
end
and the second is user.rb
class User < ActiveRecord::Base
has_many :messages
end
Then I also have a form which will let me specify which User a Message
belongs to.
<p><label
2006 Jul 07
4
need help with some ugly code - is there a better way?
Hi,
In my user_controller.rb, I have the following method, which is supposed
to send the user to their profile, dependng on what "role" they are (the
roles correspond to the other controllers: venue, band, fan):
def login
if request.post?
if session[:user_id] = User.authenticate(params[:user][:login],
params[:user][:password])
flash[:message] =
2013 Jul 24
2
[OT] Tidy of Wiki Sidebar
I have been tidying up bits of the Wiki. This
one is not clear cut, so I decided to seek
advice. Also, I wasn't sure where to post this
question, so defaulted to ogg-dev.
Should Speex and CMML be removed from
the Wiki Sidebar at:
https://wiki.xiph.org/MediaWiki:Sidebar ?
Many thanks,
Martin
--
Martin J Leese
E-mail: martin.leese stanfordalumni.org
Web:
2013 Aug 09
1
[OT] Tidy of Wiki Sidebar
On August 9, 2013, Silvia Pfeiffer wrote:
> On Thu, Jul 25, 2013 at 6:36 AM, Martin Leese wrote:
...
>> Should Speex and CMML be removed from
>> the Wiki Sidebar
> Don't remove Speex - it's still very much in use.
>
> We probably want to add Daala to the list of video codecs:
> https://wiki.xiph.org/Daala
>
> We probably want to remove CCML from the
2006 Apr 08
0
Drag and Drop ajax Bug in the typo sidebar management under IE6
hi, i have discovered a bug under IE6 and the sidebar management of typo.
you can see the html coda that show the error on
http://www.shoob.com/denis/sidebar_typo/sidebar.html
or download the code locally with
http://www.shoob.com/denis/sidebar_typo.zip
i''m not able to find what cause the error so i cannot propose a patch.
The Error is on the onHover method line 698 or 687
2006 Apr 18
0
Drag an drop bug in typo sidebar management, any help welcome
hi, i have discovered a bug under IE6 and the sidebar management of typo.
I have created a simplified version available under
http://www.shoob.com/denis/sidebar_typo/sidebar.html
The code is also available locally
http://www.shoob.com/denis/sidebar_typo.zip
Every thing run fine under fifireox, safari and opera. We only have an
error under IE 6.
i''m not able to find what cause the
2006 Mar 24
3
Changing sidebar in layout per controller
I am currently using 2 layouts in my site. One is for the admin area. I
am trying to get content in my sidebar to change depending upon the
current controller.
Example:
Within admin I have a users controller and a articles controller. When
in the users view I want the sidebar to display options (like add user
delete user etc).
What is the best actionview way to do this. I don''t
2010 Apr 26
2
woriking under webrick but not under passenger
Hi!
I have just added login feature to my rails application (followed the
instruction from (Agile Web Development with Rails) but now I am getting
strange errors (looks to me like some kind of routing problem) under the
passenger/apache.
The error is:
500 Internal Server Error
The server encountered an internal error or misconfiguration and was
unable to complete your request.
From the log:
2006 Aug 08
4
Creating a child simultaneously with parent via form
Hi there
I''ve got a user model and an address model; a user has_many addresses.
A user object can be created via an html form which also allows for an
initial address to be created.
I''ve got a controller method working to save both objects via the
form, but I suspect I can achieve this in a more rails-esque manner.
Here is my controller method:
def signup
@user =
2011 Dec 16
3
PROBLEN IN AJAX USING RJS
I am using rails 3. I have problem in out put so please tell me my
mistake
routes
-------
entermatch ''/view_article/:user_id/:article_id'' =>
''articles#view_article'', :as => :view_article
resources :users do
resources :articles do
resources :comments
end
end
article controller
------------------
def view_article
@user =
2007 Jul 12
3
Agh, this is annoying. Why is this happening?
My problem:
Mock ''Task_1005'' received unexpected message :user_id= with (1)
No matter what I do to try to stub that out it will still fail out and give
me that message.
Here is my spec
describe TasksController, "handling POST /tasks" do
before(:each) do
@task = mock_model(Task, :to_param => "1", :save => true)
2007 Dec 07
4
TextMate Sidebar
Hey David,
I just watched the RubyConf recording of your RSpec session and noticed that
you''re using a modified version of TextMate that uses a sidebar instead of a
project drawer. Where did you find that mod?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rspec-users/attachments/20071207/c900e1bc/attachment.html
2009 Feb 21
1
undefined method user_id
Basically, Im trying to add comments to photos that other users have
uploaded. And Ive encountered an error:
NoMethodError in CommentsController#create
undefined method `user_id='' for #<Comment:0x4768cd0>
C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1857:in
`method_missing''