search for: pixelandpress

Displaying 10 results from an estimated 10 matches for "pixelandpress".

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 Jan 20
1
Best way to execute timed actions?
I''ve seen this come up a few times before on this list but never felt it got a satisfactory answer. What is the best way to execute timed actions? Examples include sending an email each week, calculating interest each day, or cleaning up your database or server files. This wiki page has some ideas, but these seem a bit extreme.
2006 Feb 03
2
JavaScript Prototype Help?
I have a form with a text area. I want to have an observer watch the text area and update a div with the running count of characters in the text area. I tried "onchange" but that doesn''t update until you leave the text area. I was able to get it working using AJAX, but it''s silly to make a needless round trip to the server, when the page already knows
2006 Feb 10
3
robots.txt best practices
I''d been ignoring this error message in my log for a while: ActionController::RoutingError (Recognition failed for "/robots.txt"): I had never touched robots.txt. So I decided to make it a proper robots.txtfile I found this great article... http://www.ilovejackdaniels.com/seo/robots-txt-file/ ...where Dave explains the ins and outs of the file. Before I changed mine, I
2006 Jan 31
6
Pagination - why is it this hard?
Hi everyone, I''m at the end of my rope on this. I can''t get pagination to work with anything but a standard find on a model. If I try to do a search and customize the pagination, I get lots of different variations. My thought was to have the list action do what it does, but to pass it a list of search conditions from the search action. So, if search determines that we need
2006 Feb 19
0
Re: can store array or hash in cookies?
Not a bug. A cookie is just a string. You can turn anything into a string and store it in a cookie. Something very simple like the following might work for you: array_for_cookie = [1,4,5,7] cookies[:foo] = array_for_cookie .to_s array_from_cookie = cookies[:foo][1..-2].split('','') (And if you are just storing a single integer in a cookie be sure to turn it into a
2006 Jan 04
2
Updating Attributes in a HABTM Join Table
Is there a way to update attributes in a HABTM join table? Right now I am deleting the join and then recreating it with new attributes. I have a table "categories" and another table "items". They are both HABTM with the join table "categories_items" between them. If an item is joined to a category once, no problem, we create the join. But if an item is
2006 Jan 06
1
Re: Rails Digest, Vol 16, Issue 132
This page should be helpful on pagination: http://wiki.rubyonrails.com/rails/pages/HowtoPagination Also, I don''t totally understand your model but I think you maybe making the SQL harder than you need. find_by_sql feels like overkill in this case. Either a simple find with conditions or something like "user.color.name" might do the trick for you. Kevin
2006 Jan 13
0
AJAX can reduce bandwidth
MacRumors had a PHP page that gave up to the minute details on Steve Job''s keynote at MacWorld by using AJAX to refresh the page at regular intervals (thus keeping users from constantly reloading the page). They have posted details about their system as well as some interesting stats. http://www.macrumors.com/events/mwsf2006-stats.php To summarize, they served 32GB of data in a
2006 Feb 16
3
rescue_action_in_public question
I''m using the rescue_action_in_public example from the Agile book to handle errors and email serious ones to me. In my application.rb controller: def rescue_action_in_public(exception) logger.error("rescue_action_in_public executed") case exception when ActiveRecord::RecordNotFound, ActionController::RoutingError, ActionController::UnknownAction