What is the output of the following code? puts "aeiou".sub(/[aeiou]/, '*')
Correct Answer: *eiou
Explanation:
Note: This Question is unanswered, help us to find answer for this one
Ruby On Rails Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More Ruby On Rails MCQ Questions
Suppose a model is created as follows: rails generate model Sales rake db:migrate What would be the best way to completely undo these changes, assuming nothing else has changed in the meantime?
What is the difference between :dependent => :destroy and :dependent => :delete_all in Rails?
Which of the following methods is used to check whether an object is valid or invalid?
Which of the following is the correct way to rollback a migration?
Which of the following is the correct syntax for an input field of radio buttons in form_for?
When using full-page caching, what happens when an incoming request matches a page in the cache?
What is the output of the following code? test*5
In a has_many association, what is the difference between build and new? // user.rb has_many :posts // post.rb belongs_to :user
Which HTML template languages are supported by Ruby?
Which commands adds the data model info to the model file?