Here it is... the normal display index and "show" functionality still works
fine.
# GET /users/1
# GET /users/1.xml
def show
require 'curb'
@user = User.find(params[:id])
if File.exist?
"/home/#{@user.Personal_Web}/public_html/userdetails.html"
# #{@user.Personal_Web}/public_html/userdetails.html
constructedurl =
"http://www.met.reading.ac.uk/~#{@user.Personal_Web}/userdetails.html"
userurl = Curl::Easy.perform(constructedurl)
@userwebdetails = userurl.body_str
else
@userwebdetails = "No User Details Found"
end
if [email protected]?
@CentaurUIDValue = @user.CentaurUID
@CentaurUIDValue = @CentaurUIDValue.gsub(".", "=2E")
@CentaurUIDValue = @CentaurUIDValue.gsub("@", "=40")
@CentaurURLValue =
"http://centaur.reading.ac.uk/view/creators_cv/#{@CentaurUIDValue}.include"
@CentaurURL = Curl::Easy.perform(@CentaurURLValue)
@CentaurDetails = @CentaurURL.body_str
end
respond_to do |format|
format.html # show.html.erb
format.xml { render :xml => @user }
end
end
On Thursday, 20 September 2012 11:17:36 UTC+1, [email protected] wrote:
>
> Can you show us the code from the method show from this controller?
>
> /export/cree/raid/htdocs/users/app/controllers/users_controller.rb:33:in
> `show'
>
>
>
>
--
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].
To view this discussion on the web visit
https://groups.google.com/d/msg/rubyonrails-talk/-/pijANY965mMJ.
For more options, visit https://groups.google.com/groups/opt_out.