Displaying 20 results from an estimated 4000 matches similar to: "How to restrict access to admin part of the page?"
2006 Mar 23
2
Securing pages
Hi
For the admin pages (which in my case update/delete News) how do I
secure the pages.
I am used to PHP and normally secure the whole folder using HTPASSWD
HTACCESS files
Thanks
--
Posted via http://www.ruby-forum.com/.
2006 Mar 12
5
Authentication and authorization of static content
Hello,
I''m a Java programmer looking to make my life easier. Thus, I''m
considering using Rails for my next project. I''ve read chunks of the
Agile book and it looks like authorizing users at the Controller level
is dead easy to do. However, I have a need to password protect static
content in my site. In the J2EE world, I would use a servlet filter to
intercept
2006 Mar 08
3
attribute or instance method or what?
Hi!
Uhm are attributes just something like additional members of a class,
other than those that come from the names of columns in the table?
I''ve got images table, which has ''name'' column. I''ve added support for
creating thumbnails out of uploaded pictures and i''d like to have an
easy way of accessing them in my views.
How to do it? I.e. my image
2006 Mar 08
3
Many renders in one view?
Hi!
This was probably asked many times, but i can''t find it anywhere.
How to render in my view many actions (sometimes from different
controllers)?
So i.e. I will have user status/login form at the top, form for
creating/editing some data on the left and a list of these data elements
on the right and some other things at the bottom?
Can i put some of this stuff to the layout? So i
2006 Mar 08
19
Creating multiple rows with one form
Hello. I''ve been trying this out for the past two days and I can''t seem to
get it. I''m going to have a page where you can upload x amount of images at
once. Lets say 10 images need to be uploaded, all with a caption.
I''d like to have a browse button to choose the file, then the caption. Now,
if I put 10 of them in one form, fill them all out and submit, I get
2006 Feb 14
5
problem with apache
Hi!
I don''t know much about linux and apache configuration, so we''re using
cpanel on our server to manage accounts etc.
I was trying to install ror (according to this page:
http://wiki.rubyonrails.org/rails/pages/HowtoInstallAndRunRubyOnRailsOnCpanel)
on our server, but it didn''t worked.
If i enter "server.com/rails" i get "/testapp/index.html was not
2005 Jul 23
2
CentOS 4 snag with htaccess
I'm hitting a snag with htaccess. Have created .htaccess and .htpasswd
files, set up apache directory options just like always... the exact
same setup works fine on CentOS 3, but I can't seem to get it to
authenticate on CentOS 4? Am I just being blind stupid (as in not seeing
something 'exactly the same') or is there something different I'm
missing? I have selinux running
2006 Sep 06
2
.htaccess in public and adding password protection
While my site is in development I wish to add basic password protection.
At the moment my .htaccess looks like this:
AuthName "Restricted Area"
AuthType Basic
AuthUserFile /home/httpd/mydomain.co.uk/.htpasswd
AuthGroupFile /dev/null
require valid-user
.htpasswd exists and has an entry, yet I do not get a password prompt?
Does Apache Auth work for dynamic resources or only static
2008 Apr 18
2
Can't get .htaccess to work
Hi,
I'm trying to password protect one of my web accessable
directories and I can't get .htaccess to work in a Centos 5.1 box
Here's what I did
I created an .htaccess file with the contents:
AuthName "Restricted Area"
AuthType Basic
AuthUserFile /home/mysite/.htpasswd
AuthGroupFile /dev/null
require valid-user
and I uploaded it to the dir I want to protect. Then I
2013 Feb 13
1
htaccess is not working
Hello,
I'm new here, and after trying by myself, I'm looking for some help ...
I have installed webalizer, on my CentOS 6 server. Root path for webalizer is /var/www/usage/
It's working, but after putting a .htaccess in /var/www/usage/ and the appropriate .htpasswd in /var/www/html/auth/ there is no password asked.
Here are my files :
.htacess :
AuthName ?Veuillez vous
2006 Aug 07
1
htaccess htpasswd and satellite connections
Yeah, maybe this is a bit on the edge....
I am discovering several issues with users on satellite internet
connections not being able to authenticate via a htaccess/htpasswd
system. Some users cannot connect at all, some can connect reliably..
and some are hit and miss.. works one day and not the next. Yet those
same users can log in fine if they switch back to their dialup system.
Has
2009 May 27
2
Where to put .htpasswd
Hi All,
Where is the proper place to put .htpasswd so I can password protect
directories in /var/www/html?
/etc/httpd/run?
-Jason
2006 Mar 14
3
How to write ! version of non ! method?
Hi!
How to write i.e. array.join! based on array.join method?
--
Posted via http://www.ruby-forum.com/.
2006 Apr 08
5
Moving my site into production mode - general questions
Hi!
I''ve just finished my ror site and i''d like to move it into production
mode.
Now it runs on linux/apache 1.3/cgi.
1. Can i use fcgi in development mode? I''ve read somewhere that because
of caching it causes memory leaks and fcgi shouldn''t generally be used
in development. Does plain cgi also causes memory leaks in development
mode?
2. Does rails
2006 Mar 14
3
How to save parent and child objects in a single action?
Hi!
I''m struggling with it for a week. I posted a few similar posts that
cleared up few things (thanks Mark!), but i still don''t know how to do
it properly.
What i''m trying to do is to create parent object and its many children
(images - i tried using file_column, but it''s a topic for another
post)using data from a single form.
I''ve got a working
2006 Mar 22
4
How to write this SQL query?
Hi!
Is there rails version of "where column in (value1, value2, ...)"?
I know i could do OR many times, but this way is shorter.
I''m ruby/rails newbie, so i have a problem with converting the hash,
which i''m receving from the search form into the string for :conditions
in find method.
Could i instead of creating one, complicated (for me) query do something
like
2005 May 16
1
htaccess authentication asks for MySQL table test.user_info
Hello.
I tried to create an access file with 'htpasswd -c
/etc/httpd/conf/myfile.htaccess testuser'.
In the SSL directory I have put a .htaccess file containing the followings:
AuthUserFile /etc/httpd/conf/myfile.htaccess
AuthName "Mydomain"
AuthType Basic
require valid-user
This worked with CentOS 3.
Now with CentOS 4, apache version 2.0.52, the access to the page is
2006 Mar 13
6
Specifying none/single/many conditions at the same time
Hi!
It''s rather ruby question than rails...
I have a single ''list'' action where i call paginate method.
I can receive none, 1 or 2 variables that specify conditions for
paginate method.
How to write the code so i can call paginate without conditions if all
conditions variable are nil, with a single condition if one of
conditions variables is not empty and with 2 if
2006 Apr 21
1
Which internationalization plugin to choose?
Hi,
I need to create rather simple page (gallery + news), but it has to be
in 3 different languages (polish, english, german). Which plugin do you
recommend? How to store translated data in the database - in a single
table with separate field for every language or in separate table for
every language?
--
Posted via http://www.ruby-forum.com/.
2006 Mar 09
2
How to keep formatting of text in textarea?
Hi!
I''ve got a form for creating news and i''d like to keep formatting of the
text in the textarea - if user presses enter twice, or presses space ten
times it should be visible when editing or showing the news.
Probably i should add before_save filter and some regexps for adding
html tags, but i know almost nothing about regexp. Maybe there''s a
simpler way also.