search for: category_path

Displaying 4 results from an estimated 4 matches for "category_path".

2015 Mar 04
0
Rebuilding SIS attachment links from log
...the second attachment path is returned along with the trailing info ATTACH_LINE_FILTER="s|.*$ATTACHMENT_STORAGE_BASE||" ATTACH_LINE=$(echo "$ERR" | sed "$ATTACH_LINE_FILTER") # Now extract the aa/bb/ prefix, the base attachment file name, and user hash CATEGORY_PATH="${ATTACH_LINE:1:5}" BASE_HASH="${ATTACH_LINE:7:40}" USER_HASH="${ATTACH_LINE:48:32}" ATTACH_SOURCE="$ATTACHMENT_STORAGE_BASE/$CATEGORY_PATH/$HASH_FOLDER/$BASE_HASH" ATTACH_TARGET="$ATTACHMENT_STORAGE_BASE/$CATEGORY_PATH/$BASE_HASH-$USER...
2015 Mar 03
3
Rebuilding SIS attachment links from log
This seems simple enough...I'm just not script wizard. If someone can throw together a starting point I can test and tweak it from there. It seems to me: 1. Read /var/mail/mail.err or specified logfile 2. For each "failed: read(/var/mail/attachments/aa/bb/attachmentHash-userHash" line, a. Confirm /var/mail/attachments/aa/bb/hashes/attachmentHash exists i. If
2010 Jul 26
4
Changing the model_path.
Hi, I''m new to RoR, but currently need to make some changes to my site to implement permalinks. Whenever I do a link, I use: category_path(category) and then the to_param permalinks it. The previous piece of code would link you to / categories/CategoryPermalink; the trouble is I don''t want it to be / categories, I just want it to be /PERMALINK. Then I''m getting into even more trouble, as each category has_many tutori...
2006 Feb 12
4
How do I emulate directory structure with routes?
I''ve got something that I''m not sure is actually doable. I have a very complex model relationship with a lot of parent/child/grandchild/ greatgrandchild etc stuff going on. Is there a way to do a route like this? tld.com/ projects/:project_name/:sequence_acronym/:shot_number/:department/:eleme nt_name/:version/ where: project is the parent of sequence sequence is the