gem rails, '~> 3.2'
--
You received this message because you are subscribed to the Google Groups "Social Stream" group.
To unsubscribe from this group and stop receiving emails from it, send an email to social-strea...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
# You can customize toolbar, sidebar and location bar from here
# See https://github.com/ging/social_stream/wiki/How-to-customize-the-toolbar,-sidebar-and-location
But that link throw me an error (You do not have permission to update this wiki.) so I suppose It hasn't been created yet. I have then try to figure out myself how to added, so in
app/views/toolbar/_profile.html.erb I have added a link similar to the profile and repository ones:
<li>
<%= link_to [ subject, :documentation ] do %>
<i class='icon_tool16-info'></i> <%= t 'menu.documentation' %>
<% end %>
</li>
Couldn't find Documentation with id=asdf
No route matches {:action=>"show", :controller=>"documentations", :user_id=>#<User id: 1, encrypted_password: "$2a$10$wQiZGT1KXpYjD3zf57pQneI4wxP5t5zxJB7C.XeQumjS...", password_salt: nil, reset_password_token: nil, reset_password_sent_at: nil, remember_created_at: nil, sign_in_count: 8, current_sign_in_at: "2014-06-12 08:26:55", last_sign_in_at: "2014-06-11 08:15:57", current_sign_in_ip: "127.0.0.1", last_sign_in_ip: "127.0.0.1", authentication_token: nil, created_at: "2014-06-09 10:51:56", updated_at: "2014-06-12 08:26:55", actor_id: 1, language: nil, connected: false, status: "available", chat_enabled: true, role: 0>}
Try running rake routes
for more information on available routes.
Can't mass-assign protected attributes: author_id, user_author_id, owner_id
def create
@documentation = Documentation.new(documentation_params)
params['documentation']['owner_id'] = current_subject.try(:actor_id)
params['documentation']['author_id'] = current_subject.try(:actor_id)
params['documentation']['user_author_id'] = current_user.try(:actor_id)
# @documentation.owner_id = @documentation.author_id = @documentation.user_author_id = Actor.normalize_id(current_user)
if @documentation.save
# redirect_to documentation, :notice => 'successfully saved'
else
# render :new, :error => documentation.errors
end
end
params.require(:documentation).permit(:number_of_pages, :title)
end
def allowed_params
[:number_of_pages, :title]
end