I've got Facebook nearly working.
My (hopefully) last issue regards redirects.
After a user creates or updates, rails isn't properly redirecting.
Instead it's raising this error:
ActionView::MissingTemplate (Missing template users/create.erb in view
path app/views)
If I save inline instead of as a block, the issue goes away (but that
disables facebook_connect).
As a probably related issue, validations don't validate (likely
because they're not redirected to the originating form).
The user DOES save if there are no validation errors. Only, they don't
get redirected to the proper action.
They're redirected to
mysite.com/account, but stopped as rails looks
for the create.erb or update.erb template.
I'm on Rails 2.3.4, Passenger, and Ruby 1.8.7.
My routes look like this:
map.resources :users do |user|
user.resources :votes
user.resources :stories do |story|
story.resources :votes
end
end
map.resource :account, :controller => "users"
The only recent change I made was to add a before_filter except on the
edit, update and create actions that looks like this:
def require_username
if current_user
unless current_user.login.present?
flash[:notice] = "Please choose a username to represent
you."
redirect_to edit_account_url
end
end
end
Googling has turned up nary a lead. Any ideas?