Displaying 4 results from an estimated 4 matches for "picture_url".
2006 Feb 10
2
file column within link_to
Hi,
I correctly see:
image_tag url_for_file_column("element", "picture_url", "medium")
now I need to make it a link so I''ve used:
<%= link_to(image_tag url_for_file_column("element", "picture_url",
"medium"), {:controller => "products", :action => "sec_level",
:level_id => @element.id})...
2006 Feb 04
2
file_column path problem grouping controllers in to modules
Hey there,
good job with the file_column thing, but I''m experiencing a problem I
didn''t found about.
I''m grouping controllers in to modules (like Admin::Category Admin:Item) and:
url_for_file_column("dettaglio", "picture_url")
return this search path:
src="/detail/picture_url/development/5/dark.jpg"
there''s a development coming from nowhere... well probably it does
come from somewhere but I didn''t get why and how... :-) I''m trying to
find a way around so if you have some sugges...
2006 May 20
3
In a find, can''t you use both :include and :limit ?
...may* be:
employees = Employee.find(
:all,
:include => :skills,
:conditions => ["skill_id = ?",3]
)
-- and it works. The SQL in development.log looks correct (if verbose):
SELECT employees.`id` AS t0_r0, employees.`title` AS t0_r1,
employees.`desc_short` AS t0_r2, employees.`picture_url` AS t0_r3,
employees.`contract` AS t0_r4, employees.`available` AS t0_r5,
employees.`address` AS t0_r6, employees.`comments` AS t0_r7,
employees.`creation_date` AS t0_r9, employees.`last_update` AS t0_r10,
employees.`is_featured` AS t0_r11, employees.`is_deleted` AS t0_r12,
employees.`is_hidde...
2011 Apr 20
1
Omniauth facebook authentication failure
...ce] = "Authentication successful!!"
#create new user
else
user = User.new
user.apply_omniauth(omniauth)
case omniauth[''provider'']
when ''facebook''
if user.save
user.profile = Profile.new
user.profile.picture_url =
"https://graph.facebook.com/"+omniauth[''uid'']+"/picture"
# user.profile.location =
omniauth[''extra''][''user_hash''][''location''][''name'']
# user.profile.gender = omniauth[''ex...