rake db:createThis will creates a migration file in /db/migrate without table definition.
rails g migration create_<TABLE>| import java.io.BufferedInputStream; | |
| import java.io.FileInputStream; | |
| import java.io.InputStream; | |
| import java.io.IOException; | |
| import javazoom.jl.decoder.JavaLayerException; | |
| import javazoom.jl.player.AudioDevice; | |
| import javazoom.jl.player.FactoryRegistry; | |
| import javazoom.jl.player.advanced.AdvancedPlayer; | |
| /** |
| import java.util.ArrayList; | |
| /** | |
| * A class to hold details of audio files. | |
| */ | |
| public class MusicOrganizer | |
| { | |
| // An ArrayList for storing the file names of music files. | |
| private ArrayList<String> files; |
I want to implement ajax for comments to the blog post so that instead of refreshing, it fades in.
Code that works in another app:
Posts SHOW.html.erb
<h2>Comments</h2>
<div id="comments">
<%= render :partial => @post.comments.reverse %>