similar to: Noob Design Question

Displaying 20 results from an estimated 10000 matches similar to: "Noob Design Question"

2006 May 08
2
Noob Question - Variable Scope
I feel awful asking such a basic question, but here it goes.... I have a controller, "NewsController". The user enters and the "list" action is called and I populate an instance variable "@news" which contains all the elements I''d like to display using a form. The user then changes something and the "update" action is called. Is
2006 May 11
18
Object constructors - Noob Question
Hi: Sorry if this is a painfully stupid question... I have some data I need through the life of someone''s session. In the application controller, I grab the data and store it like so: session[:foo] = @foo Now, whenever I need to access data about foo I don''t need to cause any DB io, I can just grab foo from the session (it''s very small fyi). Here''s what I
2006 Feb 07
11
Possible Rails Security Issue?
I have an e-commerce site and users check out with a form. The results of that form are sent to a "confirm your order" page via POST. I take great pains to NEVER store the full credit card number on my server--just the last 4 digits. I was very surprised to find that by default Rails will record POST requests with parameters in the production.log. And those parameters
2006 Apr 11
15
Migrating rails 1.0 app to 1.1 - Noob question
Hi all, I''ve upgraded my system to Rails 1.1.1 successfully. After much looking I haven''t found out how to migrate an existing application to a new rails version though. What is the procedure, if any, for upgrading the application I''ve developed in 1.0? Is there a script I need to run? -- Posted via http://www.ruby-forum.com/.
2006 Apr 19
4
Weird Problem - probably a noob mistake
I was up late last night trying to find the cause of this, but I''m stumped. I have this relatively simple controller to load up a bio. It''s basicly id, name, desc, type (I use STI). class BioController < ApplicationController layout ''layouts/singlepanel'' def index @bio = Bio.find(:all, :conditions => [''site_id = ?'',
2006 Jan 23
3
[OT] Lighttpd + AWStats
Hello ~ I have posted a tutorial on my blog, http://www.benr75.com/pages/lighttpd_awstats_tutorial, on how to get AWStats and Lighttpd to work together. I thought it might be of interest to Rails folk as I know many run Light. Enjoy, -- Ben Reubenstein http://www.benr75.com -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 May 05
5
Attach a PDF File to an Email
Hello ~ I have an email that I need to attach a PDF to. The email is being sent, and a file is attached but it is not the original file. I am following the example: attachment :content_type => "image/jpeg", :body => File.read("an-image.jpg") changing it to: attachment :content_type => "application/pdf", :body => File.read("pdf/my.pdf")
2006 Apr 28
4
Conditional in Model
Hello ~ Is there a way to determine within a model which controller/action instantiated the model? Thx, -- Ben Reubenstein http://www.benr75.com
2006 May 18
11
mac spoofing
Hi, I have the following Problem: My Rootserver stands at a hoster, I run a debian sarge and installed Xen 3 there latetly. I booted the xen Kernel - everything ok. However: when I started xend, the server instantly stopped responding. My Hosters Support said, that was due to a sort of mac spoofing protection in the switch, which disabled the Port, to which my server is connected, because there
2006 Apr 27
4
Sessions Problems
Hi to group! I am new to ROR! I am facing problems on sessions. First I created the one session variable. after that I created the other one. after moving to three pages the session was destroyed automatically. What is the reason please help me! Thnaks and Regards, -Kumar Varma -- Posted via http://www.ruby-forum.com/.
2006 Mar 16
4
Handling/Catching Exceptions
Hello! I was wondering, sometimes I raise an exception in my Rails apps, e.g.: raise SecurityError unless @post.user == logged_in_user Now: is there any way to catch that SecurityError exception somewhere and render a custom template? E.g., I want to render ''app/views/content/security_error.rhtml'' Does anyone know how to do this? Thanks a bunch, Rob
2006 May 17
2
NOOB: Passing parameters between pages
Folks, I have a rhtml page (page A) that links to another page (page B), and I want to pass some parameters from page A to page B. Here is the link code (on page A): <%= link_to ''Edit'', { :action => ''edit'', :id => permit }, :post => true %> If I want to pass a parameter "name" and a value "marcus", and pick it up on page
2002 Jan 11
1
rsync 2.5.1 server - strange logs
I've just upgraded my rsync server to 2.5.1 (before, I was using 2.4.6), without changing anything in /etc/rsyncd.conf, and now, I have this logs each time a client connect to server: 2002/01/07 18:33:03 [10432] rsync: reverse name lookup mismatch on fd3 - spoofed address? 2002/01/07 18:33:03 [10432] rsync on admin/sbin/padmin_update.sh from UNKNOWN (172.16.65.14) 2002/01/07 18:33:03 [10432]
2006 Apr 08
5
Strange error ...
I''m getting a very strange error in a very vanilla Rails app setup: compile error ./script/../config/../app/views/home/index.rhtml:1: parse error, unexpected $, expecting kEND _erbout = ''''; _erbout.concat " <div id=\"index_main\">\n" ... ? Anyone know what this might be? I installed the Login Engine and the error started. I''m using
2006 Jan 17
5
NOOB: Numeric only input...can it be done on client?
I was wondering if there''s a way to limit what a user is typing on the keyboard to only valid numeric input. Is there a simple plugin or something which would allow this? I guess with AJAX it could also be one. Has anyone already solved this requirement? Thanks in advance. James -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Mar 16
3
image doesn''t show (rhtml path???)
Hi, we try to show an image which is not inside the rails framework, and we are not able to see the image!!!! does someone know how to do this??? our rails is installed on /opt/rails/project1/, so inside "project1" we have all the rails directory like "app", "public", etc.) our image is on the "/usr/images/" so in our link on the rhtml. we use a link
1998 Jun 16
2
masquerading
Following Situation: Having an intranet-application that needs to know the ip-Address of the clients before running. Clients anywere in the Internet with any ip-address. So I thought about using masquerading the opposite way than normal. But then anybody could use this application. Dos anybody know how to make it a little bit more secure, like proofing the mac-address of the client, or something
1998 Jun 14
3
What are some programs to use to trace spoofers?
ALL, Our Primary DNS has been broken into twice in the last week. The first time it happened I noticed the hacker used named for means of gaining entry. This guy was good at hiding his/her tracks so we reinstalled the OS and left a minimum install to see if it was done again. We logged all goings on from a secure remote machine. We got the hacker''s IP address and even some of what
2017 Jun 30
2
C7 and spoofed MAC address
Got a problem: a user's workstation froze. He wound up rebooting, without calling me in first, so I dunno. But, and this is a show-stopper, when it came up, it came up with the firmware MAC, not the spoofed one. In /etc/sysconfig/network-scripts/ifcg-eth0, I've got the spoofed MAC address, and a UUID. In the grub.conf, I've got net.ifnames=0 biosdevname=0. But when I logged onto his
2005 Sep 23
1
RE: [Asterisk-Dev] Open source time card application for Asterisk
A little bird whispers to me: Don't expect this particular trick to be un-addressed by various legislatures forever. That window is closing, and the bottom of the window looks very much like a guillotine blade - don't have your head in the wrong place. In any case, as has been discussed on -users before (which is where this thread should go, and thus where I'm relegating it)