My favorites
▼
|
Sign in
substruct
Open-source Ruby on Rails E-Commerce
Project Home
Downloads
Wiki
Issues
Source
READ-ONLY: This project has been
archived
. For more information see
this post
.
Search
Search within:
All issues
Open issues
New issues
Issues to verify
for
Advanced search
Search tips
Subscriptions
Issue
99
attachment: wrong_result_with_show_by_tags_with_invalid_tag.patch
(959 bytes)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Index: /home/edmundo/workspace_aptana/trunk/vendor/plugins/substruct/app/controllers/store_controller.rb
===================================================================
--- /home/edmundo/workspace_aptana/trunk/vendor/plugins/substruct/app/controllers/store_controller.rb (revision 104)
+++ /home/edmundo/workspace_aptana/trunk/vendor/plugins/substruct/app/controllers/store_controller.rb (working copy)
@@ -74,9 +74,6 @@
# Passed into this controller like this:
# /store/show_by_tags/tag_one/tag_two/tag_three/...
@tag_names = params[:tags]
- unless @tag_names
- render(:file => 'public/404.html', :status => 404) and return
- end
# Generate tag ID list from names
tag_ids_array = Array.new
for name in @tag_names
@@ -83,6 +80,8 @@
temp_tag = Tag.find_by_name(name)
if temp_tag then
tag_ids_array << temp_tag.id
+ else
+ render(:file => 'public/404.html', :status => 404) and return
end
end
Powered by
Google Project Hosting