quintonwall / rhatter

Rails and JQuery Mobile app using the Chatter REST API
24 stars 9 forks source link

can't convert String into Integer in /app/views/my_chatter/home.html.erb #1

Open ghost opened 13 years ago

ghost commented 13 years ago

Hi Quinton,

first of all, thank you for your great work and all the new cool stuff you are posting!

Just wanted to try out the rhatter app, got quite far, but then got this error:

Showing C:/Users/Danat/Documents/Nefos/Ruby/quintonwall-rhatter-e14e969/app/views/my_chatter/home.html.erb where line #17 raised:

can't convert String into Integer Extracted source (around line #17):

14: 17: <%= image_tag(ENV['sfdc_instance_url']+@userInfo["photo"]["smallPhotoUrl"]+"?oauth_token="+ENV['sfdc_token'], :alt => @userInfo["name"], "class" => "glossy" )%> 18: 19: 20: <%= @userInfo["name"] %> says: Rails.root: C:/Users/Danat/Documents/Nefos/Ruby/quintonwall-rhatter-e14e969

Application Trace | Framework Trace | Full Trace app/views/my_chatter/home.html.erb:17:in `_app_views_my_chatter_home_html_erb__640985295_38501592__182518732' Request

Parameters:

None Show session dump

Show env dump

Response

Headers:

None

Any ideas?

I opened a new Pre-Release ORG with Chatter REST API enabled, changed the config accordingly.

Your help would be highly appreciated!

Thanks, Danat

quintonwall commented 12 years ago

I assume you already set a chatter profile image?