[Rails] How to do a 301 redirect
I had to dig a little for this. The answer is simply:
1 2 |
headers["Status"] = "301 Moved Permanently" redirect_to "/" |
Here is the relevant snippet from response.rb
in ActionPack:
1 2 3 4 |
…
I had to dig a little for this. The answer is simply:
1 2 |
headers["Status"] = "301 Moved Permanently" redirect_to "/" |
Here is the relevant snippet from response.rb
in ActionPack:
1 2 3 4 |
…
I’m fiddling with an OpenACS lars-blogger to Typo converter, because I need to have my blog running Typo by Monday.
Has anyone done this already?
UPDATE: I completed it, and it turns out it wasn’t t…
It wasn’t until today that I realized you can point the RDoc Dashboard Widget straight to the Rails API doc. Now i have two RDoc widgets on my dashboard. Handy!
Paul Graham: “Most of what the VCs add, acquirers don’t want anyway.” Exactly!
Dave Winer: “The keyboard is a bit awkward, wish it were the same layout and size as the keyboard on the iBook.”
Exactly! I have a veritable keyboard graveyard from gone through at least 5 keyboards …
Greg Yardley has a great point, when he says:
It’s just good business sense – if you want to kneecap the market leader, you have to reduce switching costs to zero.
Reason was that NewsFire doesn’t show who posted an item, which is crucia…