Displaying 20 results from an estimated 9000 matches similar to: "strange path errors"
2007 Dec 06
0
saving the user id for thumbnails using attachment_fu
I am using attachment_fu to create thumbnails, and it is working
great. However, I am have a view with all my users thumbnails
displayed and am trying to make it so when you click on a thumbnail of
their avatar, it shows that users profile. In order to accomplish
this I have saved a user_id identifier for each avatar, but the
problem is that attachment_fu only saves this user_id for the main
2008 Feb 29
4
App design question: user_photo helper
I''m having trouble using an application helper and understanding how I
should make it work throughout my application - so if you can help me
with this I''ll be overcoming a big hurdle in my learning.
Here''s the helper method;
[code=]# application_helper.rb
def user_photo
if @user.photo?
return @user.photo.public_filename(:thumb)
else
return
2008 Feb 11
1
image_tag is it just plain Broken?
I''m trying
<%= link_to image_tag("#{gallery.link_to}"), gallery_path(gallery)
unless gallery.thumbnail_id == 0%>
and get the error:
ActionView::TemplateError (undefined method `image_tag'' for #<Gallery:
0xb7083be4>) on line #23 of app/views/users/index.rhtml
This is my definition of link_to
def link_to
unless self.thumbnail_id == 0
picture =
2009 Apr 29
7
problem with nil.user
Hi all, I''ve put new code into my app so that an administrator will have
extra privileges (administer users, edit pages). The error is:
''Couldn''t find User without an ID''
So the app is looking for a logged in user when the homepage is
accessed.
Heres my code:
site/index view:
<% if is_logged_in? and logged_in_user.has_role?(''Moderator'')
2007 Aug 13
1
link_to image_tag puts a box round my image
I''ve got a rather long conditional statement that either displays a
link_to(image_tag(blah)blah) or just an image_tag (i''ve edited it a bit
to show the structure):
<%= (article.score_from_user(:user_id => session[:user]) != -1)
?
(link_to image_tag("/images/down_arrow_grey.jpg", :alt => "down"),
:controller=>"article", :action =>
2008 May 24
1
link_to_remote, image_tag, mouseover is this possible?
Hi guys,
I was wondering if you are able to have a link_to_remote, having an
image_tag and the link_to_remote has a mouseover event that updates a
div. Does the image_tag need the mouseover event? I currently have:
<%= link_to_remote(image_tag(@p_image.public_filename(:thumb)), :update
=> "big_pic", :onmouseover => {:action => :color_change, :id =>
@p_image.id})%>
2007 Jun 17
1
actionmailer & picture
Hello
I''m using action mailer to create an HMTL outbound email. This email
renders a partial. In that partial, a call is made to a public location
to get a picture for display in the email.
When this email is generate, I get the following error (note: I''m sure
it has something to do with not understanding the context of
actionmailer and how it functions):
NoMethodError in
2010 Jul 11
0
Attachement_fu error when updating existing photos
Hi,
I am attempting to replace an exiting photo with a new one uploaded by
the user. I am using attachment_fu and I am coming up with the
following exception:
can''t convert nil into String
/vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu/backends/file_system_backend.rb:23:in
`join''
2007 Dec 01
3
Rails 2 problem with compute_public_path
I''m trying to migrate to Rails 2, but keep getting these errors all
over the place:
ActionView::TemplateError: wrong number of arguments (2 for 3)
On line #61 of users/new.rhtml
58: <% if @captcha_error -%><div class="fieldWithErrors"><
% end -%>
59: <table class="signup"><tr>
60: <td
2007 Sep 20
1
undefined method `request' for "products":String ?
Since updated edge yesturday i have had a series of errors related to
undefinded methods for "products":String.
I do have these controllers namespaced.
====
Errors example 1:
undefined method `request'' for "products":String
Extracted source (around line #2):
view:
<tbody>
<%= render :partial => ''admin/products/product'',
2006 May 08
2
session[:user_id] / name problem! Help!
Ok, I have a login on my site, and when I log in, I want to display
"Welcome #{user}".
In my session, if I do "Welcome <%= session[:user_id] %>" I''ll get
"Welcome 1" which is right, but how can I access the name based on the
session id?
For instance, essentially I want to do this:
"Welcome <%= session[:user_name] %>"
or
2008 Jan 21
7
undefined method error
Hello everyone,
I am following the Practical Rails: Social Networking
sites book. In chapter 7 photo gallery I am getting a
NoMethodError in Pages#show
Showing layouts/_menu.rhtml where line #12 raised:
undefined method `new_entry_path'' for #<ActionView::Base:0x52fa56c>
Extracted source (around line #12):
9: <% if is_logged_in? %>
10:
2011 May 06
3
Rails 3 Routing problems
I have an UploadsController and UsersController where Users''
has_many :uploads'' via polymorphic attachment in uploads.rb.
Now we i navigate to http://localhost:3000/users/1/uploads
I get re-routed to Uploads#index and rendered is called multiple times
as shown below:
Started GET "/users/1/uploads" for 127.0.0.1 at 2011-05-06 22:00:38
+0100
Processing by
2007 Oct 12
2
missing attribute: reorder
I am trying to use an integer object as a flag item for displaying a
link on a page called reorder that is a column in my PlanProcedures
table.
I''m getting an error that says
The Header is NoMethodError in Manage_plan_procedures#list
missing attribute: reorder
Here is what my model looks like:
>> PlanProcedure.column_names
=> ["id", "plan_id",
2007 Dec 06
2
passing parameters through link_to
Is it possible to pass parameters through link_to that will be used by
the controller that link_to directs to? Specifically I have this
code:
<% for user in @users -%>
<%= link_to user.screen_name, {:action => "index", :controller =>
"users", :user_id => user.id } %>
<% end %>
Is it possible to use the parameter at the end of link_to(:user_id
2007 Nov 02
4
Login Redirect - Hacking the session[original_uri]
Hi There,
I have several ajax elements that require authorization, but for various
reasons, they can''t pass session[original_uri] to the redirect on user
log in. I''m trying to hack in a uri by passing a param to the login
page.
I can see that the param is passing into the login page, but for
whatever reason, no matter what I do, the user is redirected to the
homepage after
2008 Mar 20
0
Having trouble with a remote-crop-then-resize using attachment fu =(
Basically, I''m trying to crop multiple images out of a remote/original
scene.. Think flickr ''tagging'', only, the pixs in the tagged boxes
become their own unique images.. by way of simulating an upload from
the controller using attachment fu.. can''t quite figure out the
specific method in fu that would allow me to do this.. I''m so near the
edge right
2014 Apr 26
0
jquery_ujs.js 404
I am getting this annoying error which relates to jquery_ujs.js not
being served. Any clues?
This is the site link:
http://test.kopy.com.br/home/index
GET http://test.kopy.com.br/assets/jquery_ujs.js?body=1 404 (Not Found)
index:11
GET http://ads.panoramtech.net/loader.js?client=tac
net::ERR_BLOCKED_BY_CLIENT rev.js:4
Error in event handler for (unknown): Cannot read property 'state' of
2006 May 17
1
Experiences with ModelSecurity
Hiall,
I would be very interested in your opinions on the ModelSecurity
plugin by Bruce Perens.
http://perens.com/FreeSoftware/ModelSecurity/Tutorial.html
Some time ago, I read on a few pages that it is the way to go, on this
list however, I didn''t read much about it. Apart from it''s security
level,
quoted from comments in source code:
# FIX: At the moment we only support
2005 Nov 20
1
mySQL 5.0 upgrade - incompatible DateTime format?
I''ve upgraded to mySQL 5.0, and it''s gone pretty smoothly except that on
DateTime.now doesn''t seem to return a value that mySQL likes any more,
as seen in the following exception:
Incorrect datetime value: ''2005-11-20T15:33:12-0800'' for column ''logged_at'' at row 1: UPDATE notes SET `due_on` = ''2005-11-20'',