search for: web_sit

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

Did you mean: web_site
2006 Feb 11
6
models and validation problem
In my model, I am attempting to correct some bad data rather than just pass an error message back to the user. The problem is that my fix seems to get the data past validation but it then puts the bad data into the database rather than the new(and improved) data. If I pass in web_site with the value of ''www.test.com'', it will pass validation but it won''t add http:// to the variable. Here is my model class Comment < ActiveRecord::Base belongs_to :post ## validation checks validates_presence_of :name, :comment protected def validate...
2006 Jan 04
5
help with link_to_if, I can''t make it work...
For the life of me I can''t get it to work. Here is an example of my syntax. I''m trying to make comment.name a link to comment.web_site only if there is a comment.web_site. Can someone please help? <%= link_to_if(comment.web_site.length > 0, comment.name, comment.web_site {"class" => "comment_by"}) %> -- Posted via http://www.ruby-forum.com/.
2006 Jan 05
0
Re: help with link_to_if, I can''t make it work..
Nooby guess, Do you need a comma between comment.web_site and {"class... ? Looks like there should be 4 params...test, text, href and html_params A. On 4 Jan 2006, at 04:42, rails-request@lists.rubyonrails.org wrote: > Date: Wed, 4 Jan 2006 05:05:39 +0100 > From: charlie bowman <cbowmanschool@yahoo.com> > Subject: [Rails] Re: help...
2006 Apr 08
2
trouble expiring cached pages
...:action => ''view'', :id => post_id) end end and now here''s my log that shows that the expiration "should" be happening. SQL (0.000369) INSERT INTO comments (`name`, `raw_comment`, `date`, `post_id`, `web_site`, `comment`, `email`) VALUES(''bbbbbbbbbbbbbbbbb'', ''bbbbbbbbbbbbbbbbbbb'', ''2006-04-08 19:46:25'', 56, '''', ''bbbbbbbbbbbbbbbbbbb'', '''') I made it to the caching method in the SWEEPER!!!!!! Expi...