Displaying 20 results from an estimated 10000 matches similar to: "Controller paths"
2006 Apr 10
3
Upload an image
Hello there. :-)
I have this view:
<%= form_tag({:action => ''create''}, :multipart => true) %>
<table>
<tr>
<td>User</td><td><%= text_field("user","name") %></td>
</tr>
<tr>
<td>Image</td><td><%=
2006 May 23
4
Protecting the source code.
Hello guys.
I need an opinion here. I need to make a mid-big size web project. Will
be a project that my boss wants to sell, and he don''t think show the
source code is a good idea and me neither, I love free software but on
this case will be a software made for a company who wants to try to make
some money with it.
My question is: PHP have things like Zend Guard
2009 Oct 03
1
NTLM
Hey there!
Can you guys tell me about what's the status of docs of NTLM/NTLMv2
provided by Microsoft?
Let me explain why I need that: we had here a discussion on a local
college about "free x proprietary software", and the Microsoft guy
(always them, right?) told us about a case where he claimed that
Firefox sent one user username and password through the network
without
2006 Jun 01
2
Union all
Hi there.
I have two models (and two tables, of course), let''s call them Room and
Reserved, with similar fields but with the last one with some extra
info, and need to get data from both using a "union all". Let''s think on
a hotel where I need to "glue" data to take a snapshot from the
occupation like:
Room (number,date,ocupied_by)
2006 Apr 06
9
How to get Form values in RubyOnRails
Hi
I want the FORM values on my controller.i.e. I want the values of login_loginname(Form variable) and login_password(Form variable) on login_controller.rb
How can i do that?
Table Name is: logins
Model:: Login.rb
Controller:: login_controller.rb
Below is my test form
loginname
password
Hoping for reply
Regards
Parikshit
2006 Jan 03
3
Engine and controller layout confusion
Hi all,
Installed the login_engine which is working. But I''m confused as to how I tell
Rails to use the "/app/views/layout" rhtml files, when partials from the
login_engine are used from "/vendor/plugins/login_engine/app/views/user".
Do I copy login.rhtml to /app/view/mgmt?
(mgmt is a controller name in my app)
Along the same line:
I also have a nil error on the
2006 Jul 17
10
getting the user name
Hi I am new to ruby and trying to obtain the user name in the login
index.rhtml where I could display "You have logged in [user name]"
How could I do this? I have been trying different options after reading
the ruby manual but still throw an error.
please help
--
Posted via http://www.ruby-forum.com/.
2006 Feb 11
7
Menu Helper
Hi all,
I''m trying to add a common menu to all pages in my application. It is
just a set of links I want to display. I''m having trouble deciding
where to put the code. Below is what I''ve tried to get out of the "Four
Days on Rails" tutorial but no luck. Any help would be appreciated. Am
I on the right track?
Thanks,
Sam
2008 Jan 21
7
undefined method error
Hello everyone,
I am following the Practical Rails: Social Networking
sites book. In chapter 7 photo gallery I am getting a
NoMethodError in Pages#show
Showing layouts/_menu.rhtml where line #12 raised:
undefined method `new_entry_path'' for #<ActionView::Base:0x52fa56c>
Extracted source (around line #12):
9: <% if is_logged_in? %>
10:
2006 Jun 20
4
Invoking MouseOver using link_to tag ?
Hi,
How can we trigger a JavaScript built in function from a <%= link_to %>
ie. i have the below statement in my view. I want to invoke a JavaScript
function on "MouseOver" of this below text (''TestingMouseOverEvents'').
<%= link_to "TestingMouseOverEvents" , :controller => "login", :action
=> "logout"%>
Note: The
2006 Jun 05
5
Controller-wide instance variable
Is it possible to declare an instance variable in a controller that is
available to every action without defining the variable in every action?
--
Posted via http://www.ruby-forum.com/.
2005 Dec 26
3
Display Login Status
I''m using salted login generator and would like my pages to display a
login status bar.
If the user is logged in I want it to show something like:
---------------------------------------------------------------
You are currently logged in as UserX (Logout)
---------------------------------------------------------------
And if they''re not logged in:
2006 Jul 13
8
Acts As Authenticated - smarter login box
Hi,
I''ve got AAA loaded and working. I now want to put a smarter login form
on the sidebar of my site.
If the user is not logged in, I''d like to display a typical form in the
sidebar that collects the user ID/password and allows the user to login.
If the user is logged in, the box should display something like ''Logged
in user: FirstName Lastname'' and a
2006 May 08
1
newbie: Login/Logout in view
I am using the acts_as_authenticated plugin to manage logging in/logging
out. There are a few controllers, such as search, that I don''t mind
people accessing regardless of whether they are logged in or logged out.
My current view just has some static links on the left that say Login
and Logout. How should I set it up so that it says Login when not logged
in and log out when logged
2008 Feb 20
1
link_to weirdness, related to namespace?
Hi,
In my app/views/admin/clieint/_searchresults.rhtml partial, I have ...
<% for user in @users %>
<tr>
<td><%=h user.ship_to_first_name %></td>
<td><%=h user.ship_to_last_name %></td>
<td><%=h user.email %></td>
<td align="center"><%= link_to ''Show'', {:action =>
2011 Feb 23
5
Routing problem
In my app i have word model, words_controller and want create new
action for word model.
I create new method ''test'' in words_controller, and adds:
resources :words do
member do
put ''test''
end
end
in routes.rb
my rake routes output:
test_word PUT /words/:id/test(.:format) {:action=>"test",
:controller=>"words"}
2010 Oct 21
4
Authlogic + Rails3 - undefined method `Login' for nil:NilClass
Im new to Rails, and decided to start of with Rails3. After a lot of
searching ive managed to get a little bit of Authlogic working. I''m able
to register a user, login & logout.
Now, I would like to add more features, get more of authlogic working.
I''m using Railscast EP 160 as my reference.
Portions of the code found on the tutorial throw errors: Eg:
<!--
2005 Jun 01
3
Mixing Controllers
I have a login section that is part of my view from my sign_up
controller. Validating my user happens through a login_controller.
Now if validation is good it is ok because I have a redirect in my
login_controller. But if the login is not successful I have to go
back to my view from my sign_up controller. Using redirect makes no
sense because my @user_login object is lost and so are
2007 May 09
5
layouts + routes = confused
I''m new to RoR and the tutorials I''ve found on the web, while helpful,
aren''t as "complete" as I''d like them. I understand the basics when
it comes to layouts and routes, but I''m trying to get them to work
together.
MY first task was to implement a user authentication system
(registration/login/logout/change_password). This works fine with
2010 Sep 13
13
what I've missed in routes.rb?
In routes.rb I''ve put:
resources :sessions
controller is:
class SessionsController < ApplicationController
def destroy
session[:id] = nil
session.delete(:casfilteruser)
CASClient::Frameworks::Rails::Filter.logout(self)
end
end
In application.html.erb I have:
<%= link_to ''Logout'', session_path(session[:cas_user]), :method => :delete %>
I