search for: sabon

Displaying 5 results from an estimated 5 matches for "sabon".

Did you mean: saben
2006 Apr 12
6
distinguishing mapped urls from ordinary action urls
...ent view depending on the url. example below: http://myapp/start/show?url=xZq http://myapp/xZq both addresses are controlled by a single controller and the same action. the second url is only mapped in routes.rb how can I distinguished the mapped url and present a slightly different view in it? Sabon -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060412/2b80d52e/attachment.html
2006 Apr 13
0
redirect_to or link_to mapped url. any other way than "../../smth"?
...urls mapped so that http://myapp/url is the same as http://myapp/start/show/url. Is there any way to use "redirect_to" and "link_to" in this case? Currently I just use redirect_to("../@url") but perhaps there''s some way to make it properly, with :action etc. sabon -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060413/b53fa0c9/attachment.html
2006 Apr 13
0
keep getting undefined method `rewrite'' error for mapped urls
...r'' %> I keep getting this error: undefined method `rewrite'' for "xxxxxxx":String "xxxxxxx" is the ''url'' in the mapping and the addres (http://app/URL) What am I doing wrong? How can I fix this so that I could use other actions freely. Sabon -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060413/52c1977b/attachment.html
2006 Apr 20
0
link_to mapped urls
...lhost:3001/start/random" and I want it to point to "http://localhost:3001/random" What am I doing wrong? I looked in named routes docs, link_to docs etc. but either I search in the wrong place or it''s magically hidden (I''d bet on the first one but I really tried). Sabon -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060420/864e92d5/attachment.html
2007 Jun 10
2
custom errors for validates_presence, etc..
I am trying to figure out how to customize the error messages when I use validates_presence_of. I am validating a user name and I use <%= error_messages_for ''user'' %> in my view to display the messages. I know you can customize in the model with :message =>''custom message'', but I am trying to get rid of the first part of the error message which is, 1