similar to: Restricting before_filter to certain actions?

Displaying 20 results from an estimated 300 matches similar to: "Restricting before_filter to certain actions?"

2008 Jul 10
7
Showing another controllers action
If I am in controller A and I want to show the index of controller B, how would I do that? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To
2006 Aug 03
1
strange before_filter error. is this a bug i have found?
... before_filter :find_regression_test def find_regression_test @regression_test=RegressionTest.find(8) end .... The above seems like perfectly normal before_filter syntax, but it gives this error. Aldo is no application trace, just a framework trace: Any idea what is wrong? NoMethodError in Regression testsController#modify_regression_test private method `equal?''
2011 Sep 20
2
Group access control under LDAP.
Hi. I would like to know if there is a way to restric access to computer under LDAP. In the SambaSamAccount I have a SambaUserWorkstation that allow me to set the workstation a user could logon. I'm looking for something like this, but under computer account, I would like to set a list of users group that is allowed to logon on this computer. Thanks Daniel
2006 Jul 25
9
Can anyone explain this code? It uses Inject
def webs @webs ||= Web.find(:all).inject({}) { |webs, web| webs.merge(web.address => web) } end -- Posted via http://www.ruby-forum.com/.
2006 Jan 19
1
Allowing certain IP to browse
Hi all, Need your input of the following: I have a linux box(firewall) -I want to restric some users not to browse but send emails only Example: 192.168.x.2 up to 192.168.X.45 to send emails and browse, while the rest(192.168.X.46 to 192.168.X.254) to send emails only. How do I do that? thanx Andy
2004 Aug 25
6
Tricky problem of public proxy server
Hello All, I have installed Shorewall 2.0.7 and configured , I am using masq to share internet for users. I have problem of perticular sites . I blocked site IP address. and succeeded but i have problem of Public proxy addresses , some user use anonymous proxy Ip and get thru it and use blocked sites. I blocked Public proxy adresses but it lot of them( I mean more than one public proxy
2006 Aug 09
4
Do i need multiple mongrel instances for good performance?
I have developed a rails application for my company. It will be used by upto 3o people at a time. I have just read that Mongrel will only process 1 request at a time (rails is only in 1 controller at a time). Does this mean that to get good performance i need to run mongrel many times on different ports? How many different instances of mongrel is recommended? If this is true then it
2006 Jul 20
4
SVN rails problem
My rails project is at version 52. I want to revert the whole app to version 50, effectively ignoring v 51+52 I ran "svn update -r 50" in my working copy. Success. I have done some work on version 50, but when i try commiting it tells me that the file im commiting is out of date. DOes anyone know the solution? Thanks Chris -- Posted via http://www.ruby-forum.com/.
2006 Mar 09
7
How to restrict access to admin part of the page?
Hi! What is the easiest way to restrict access to some part of the page? In php i just put .htaccess and .htpasswd files in /admin folder and it worked. Now i''ve got one admin folder for controllers, one for views, public folder and i''m not really sure if it''s still possible. So what is the easiest way? I don''t have any user logging features on my site,
2004 Jan 21
2
[Fwd: Re: Comboot Menu]
Thanks for the comment. The next pass for a file format ... ------ FILE BEGINS ----- # Comment lines [menu] item="text to display" status="status line text" action= SUBMENU | INACTIVE | whatever submenu= <number> data="arbitrary string" item="text to display" status="status line text" action= SUBMENU | INACTIVE | RUN | EXIT submenu=
2006 Jul 18
16
Session is being shared between tabs!!??
I have just spotted quite a serious problem with my rails app. My app uses the session to store information. Most people who use the app may have more than one instance of it open in their browser (multiple tabs). The session stores which country the user has selected. On each browser tab the user may select a different country. You can add items to a country. There are problems with
2006 Apr 04
1
Redirecting after "new" action
How do I alter the "new" action so that it returns to a page of my specification (vs. returning to "list")? Thanks. -- Posted via http://www.ruby-forum.com/.
2006 Jun 02
3
All non US 48 area codes?
Is there a list somewhere or a way to find the following: 1- All non US 48 area codes which can be dialed as 1+10 2- All strange area codes which are used for premium services such as 900-XXX-XXXX 3- Anything else that should be restricted if one was to restrict all calls to US 48 only I have found many list but it's tough looking at the entire list of area codes and pulling out each of them
2006 Aug 01
4
How do you evaluate text as code in Ruby?
How do you evaluate text as code in Ruby? I''m sure there''s a technical term for this... Thanks Chris -- Posted via http://www.ruby-forum.com/.
2006 Aug 03
3
Help me for learning Rails for my project!!!
Hi, I am Anil I am currently working on a Rails project in my company. I am facing some problems listed below! 1. I have websites UI ready(HTML/CSS), I want it to convert it to rhtml. Is their any script or software which will help me to convert html syntax to rhtml, instead of manually changing it to rhtml ? 2. Which editor should be used for rails development. I have started using RadRails
2009 Sep 25
1
Penalized Logistic Regression - Query
Dear R users, Is there any package that I could use to perform Penalized Logistic Regression (i.e. Ridge/Lasso regularization) including also an offset term in the model (i.e. a variable with a known coefficient of 1 rather than an estimated coefficient)? I couldn't find any package that would allow using offset terms. Any guidance will help. Many thanks! Axel. [[alternative HTML version
2005 Mar 16
2
Two questions
Hi All, I have the following questions: We have some folders / shares where we store for example only .doc files. But some users also saves the .jpg files in this share. We don't want this and we wondered if we can block saving .jpg files with samba. Is there an option to set in smb.conf so we can block the saving of .jpg files? Second one: Some users saves the .doc files for example as
2007 Nov 04
4
Why can repeated measures anova with within & between subjects design not be done if group sizes are unbalanced?
Dear R people: I wish to switch from SPSS to R, but there is one particular type of ANOVA design that cannot be done in R. Or more likely, it can be done, but it is nowhere documented. The problem is typical for psychologists: You have a repeated measures design with different groups of subjects. Now, this can be done with the aov command, but the number of subjects in both groups must be
2009 Mar 05
4
before_filter :action_name OR :action_name
Hi there I am wondering if we can use before_filter in the form of :action OR :action what i want to do is to implement one of the actions, if the first failed, then go to the second when i use before_filter :action1 before_filter :action2 each method will run them, my case is that i want to check if one of them is true and not both any idea?
2006 Aug 08
11
When will rails support true prepared statements?
I''m in an Oracle shop, and it''s the 1 thing that gets on my bosses nerves. I wish they would support this. Anyone any idea if or when it will be supported? Thanks Chris -- Posted via http://www.ruby-forum.com/.