Looking through all of my controllers I can't see anything about any
requests..
As for friendly URLs, I might look at it at some point; but for now is
there anyway I could just make another if statement in the controllers
to make it redirect if it has the wrong permalink? (Not only would
this mean
Hi
Basically I have a permalink system setup using the to_param method in
the model file. Since I have a system in which categories has_many
tutorials, my URLs look a bit like this:
site.com/CatID-Category-Perma/TutID-Tutorial-Perma
I have a system to redirect when the user puts in an ID to the
I don't know what request.path or request.fullpath are, or how to
check if they include my redirect thing (I'm a real RoR noob); but
I'll be looking around files for them.
As for why it's so important; firstly I still need to perfect the
permalink system (remove some more punctuation), and don't
I don't know what request.path or request.fullpath are, or how to
check if they include my redirect thing (I'm a real RoR noob); but
I'll be looking around files for them.
As for why it's so important; firstly I still need to perfect the
permalink system (remove some more punctuation), and don't
I don't know what request.path or request.fullpath are, or how to
check if they include my redirect thing (I'm a real RoR noob); but
I'll be looking around files for them.
As for why it's so important; firstly I still need to perfect the
permalink system (remove some more punctuation), and don't
Aha, I think I've finally figured it out with named routes!
However my named route only works when its on the top line, and I need
to make a static map.connect above it or the web app wont work; why
does it make me put it at the top (there is nothing overwriting it or
anything below). When it's
I've already read this, and still don't understand.
Would I need something like this?
rewrite %r{/tutorials/(\w+)categories/(\w+)}, '/categories/
CategoryPermalinkHere/tutorials/TutorialPermalinkHere'
rewrite %r{/tutorials/(\w+)}, '/categories/CategoryPermalinkHere/
I program in many languages, and that does not stand out to me.
I know C++, Java, CSS, HTML, Lua, and Visual Basic; and that doesn't
stand out to me. I assume that this is from a whole different category
of programming/scripting languages; of which I don't know.
Could you please explain to me how
Hmm. Ok. Ill look into it.
So I guess ill want something like this: r301 %r{/tutorials/(\w+)}, '/
$1'
But instead of using the first unknown word variable (as /$1 would
refer to (as far as I know)); I want it to go to my permalinked URL
(http://127.0.0.1:3000/categories/1-css/tutorials/12-test9
Bump?! Please help.
On 24 June, 15:21, Joe j...@dev-hq.co.uk wrote:
More problems..
Firstly I don't have an application.rb file to add this into.
Secondly, where does my example use a regular expression? and how can
I do something similar with my RoR application?
On 24 June, 11:55, Lecky
THANK YOU SO MUCH!
On May 11, 4:54 pm, Ar Chron li...@ruby-forum.com wrote:
map.resources :tutorials,
:controller = categories
:path_prefix = /category/:category_id,
There should be a comma at the end of the second line after
categories, my bad.
--
Posted
Y'know I think this topic is too long anyway, so I'm probably going to
create a new topic on the issue tonight (unless someone wants to reply
between now and then).
Thanks For Your Help Guys!
Joe
On May 9, 4:43 pm, Joe j...@dev-hq.co.uk wrote:
Bump?! This is this final step, please can anyoe
Anyone?
Any help would be much appriciated,
Thanks In Advance,
Joe
On May 3, 11:28 am, Joe j...@dev-hq.co.uk wrote:
So I change it to this: %= render :partial =
@category.tutorials.ordered_by_position %
and I get the error: undefined method `ordered_by_position'
I'm guessing that's
Anyone?
Any help would be much appriciated,
Thanks In Advance,
Joe
On May 3, 11:28 am, Joe j...@dev-hq.co.uk wrote:
So I change it to this: %= render :partial =
@category.tutorials.ordered_by_position %
and I get the error: undefined method `ordered_by_position'
I'm guessing that's
Anyone?
Any help would be much appriciated,
Thanks In Advance,
Joe
On May 3, 11:28 am, Joe j...@dev-hq.co.uk wrote:
So I change it to this: %= render :partial =
@category.tutorials.ordered_by_position %
and I get the error: undefined method `ordered_by_position'
I'm guessing that's
Basically I've been creating various RoR (ruby on rails) applications
and I cant figure out how to add properties to an already existing
scaffold; I have ended up destroying and messing up two projects that
I've worked hard on so far in trying to do this and realised I need
some help trying to
For example if I created a forum with RoR and decided to have a forum,
thread, and post scaffold, and they each has their own properties;
Lets say the forum scaffold was made with these parameters forum
name:string number:integer. However if I wanted to add another
property to the forum scaffold
Aha, thanks! ill look into this (I really dont know any of the
terminology, when I created the stuff I saw the word scaffold and
assumed this was what to call it :P)
If I have any further problems ill ask.
Thanks,
Joe
On Mar 21, 1:02 pm, Michael Pavling pavl...@gmail.com wrote:
On 21 March
Aha, thanks! ill look into this (I really dont know any of the
terminology, when I created the stuff I saw the word scaffold and
assumed this was what to call it :P)
If I have any further problems ill ask.
Thanks,
Joe
On Mar 21, 1:02 pm, Michael Pavling pavl...@gmail.com wrote:
On 21 March
Ok, I seem to have a problem already.
So first of all with these things, can I just change it in db/migrate/
WhateverFile.rb ?
Then when I have changed it how do I put these changes into action?
Also I cant seem to find how this could help me solve the error:
rake aborted!
An error has
Ok, I seem to have a problem already.
So first of all with these things, can I just change it in db/migrate/
WhateverFile.rb ?
Then when I have changed it how do I put these changes into action?
Also I cant seem to find how this could help me solve the error:
rake aborted!
An error has
Ok, I seem to have a problem already.
So first of all with these things, can I just change it in db/migrate/
WhateverFile.rb ?
Then when I have changed it how do I put these changes into action?
Also I cant seem to find how this could help me solve the error:
rake aborted!
An error has
Ok, I seem to have a problem already.
So first of all with these things, can I just change it in db/migrate/
WhateverFile.rb ?
Then when I have changed it how do I put these changes into action?
Also I cant seem to find how this could help me solve the error:
rake aborted!
An error has
Ok, So I figure I have to roll the database back and then migrate it
again.
However it just isnt doing anything when I call rake db:rollback, or
even specify a STEP:
rake db:rollback STEP=4
(in C:/Users/user/Documents/Aptana Studio Workspace/ProductCatalog)
rake db:rollback STEP=10
(in
Ok, So I figure I have to roll the database back and then migrate it
again.
However it just isnt doing anything when I call rake db:rollback, or
even specify a STEP:
rake db:rollback STEP=4
(in C:/Users/user/Documents/Aptana Studio Workspace/ProductCatalog)
rake db:rollback STEP=10
(in
NEVER MIND. I was being an idiot. I just deleted the old migration
file that was causing the problems; and then created a new migration
file to get the new stuff in..
Thanks Guys,
-Joe
On Mar 21, 4:25 pm, yout...@dev-hq.co.uk wrote:
Ok, So I figure I have to roll the database back and then
26 matches
Mail list logo