-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Created merge article feature for admins #33
base: master
Are you sure you want to change the base?
Conversation
…ditional to admin new categories controller (new or edit)
…s a blog publisher in test
…est for bodies combining is currently failing
@@ -24,13 +24,21 @@ def destroy | |||
private | |||
|
|||
def new_or_edit | |||
if params[:action] == "new" | |||
@category = Category.new | |||
elsif params[:action] == "edit" && params[:id] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thought: Does the params[:action] in this elsif
as well as the one below change the conditional, or could you just use params[:id]
Article ID | ||
<%= text_field "other_article_id", "other_article_id", {:autocomplete => 'off', :style => 'width: 30%; margin-left: 10px'} %> | ||
</span> | ||
<div style="padding-top:10px"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you use a class here instead of inline style?
What I did do:
...merge feature is only available to admin
...merge feature is not available on new articles
...merge feature combines text of the two articles
...merge feature maintains title of just one article
...merge feature removes the other article
-Deployed to heroku with this feature: https://aqueous-reaches-35072.herokuapp.com/
What I did not get to:
...new article having a single author
...new article having comments from both articles