Michael Pavling wrote:
> On 2 June 2010 10:22, Pale Horse <[email protected]> wrote:
>> Michael Pavling wrote:
>>
>>> Really? Strange.
>>> What happens if you try to call thumbnail_tag with no arguments?
>>
>> I get exactly the same error. I don't see the logic in this problem.
>> Hence my post.
>
> Can you post a few extra lines from the error messages you get in both
> cases; I'm curious if they're *exactly* the same...
>> Case 1 (with arguments):
wrong number of arguments (2 for 0)
Extracted source (around line #2):
1: <% if @content_page.has_picture1? %>
2: <%= thumbnail_tag @content_page.picture1, :border => "0", :width =>
"288" %>
3: <% else %>
4: <% if File.exists?("#{RAILS_ROOT}/public/images/default_image.jpg")
%>
5: <%= image_tag "default_image.jpg", :border => "0", :width =>
"288" %>
>> Case 2 (without arguments):
wrong number of arguments (2 for 0)
Extracted source (around line #2):
1: <% if @content_page.has_picture1? %>
2: <%= thumbnail_tag @content_page.picture1 %>
3: <% else %>
4: <% if File.exists?("#{RAILS_ROOT}/public/images/default_image.jpg")
%>
5: <%= image_tag "default_image.jpg", :border => "0", :width =>
"288" %>
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.