Git Product home page Git Product logo

challenge's Introduction

Ruby on Rails Coding Challenges for Interview

Welcome to our coding challenges designed to test your Ruby on Rails expertise. Each challenge focuses on a specific aspect of Rails development, from implementing new features to refactoring existing code. Please select and complete any of the tasks below as instructed.

Challenge 1: Implement a Custom Scope

Objective: Implement a custom scope on the User model to filter users who have logged in within the last week.

Challenge 2: Add a RESTful Endpoint

Objective: Add a new RESTful API endpoint to create a Comment for a Post.

Instructions: 3. Ensure the controller handles both success and failure cases appropriately.

Challenge 3: Data Validation Task

Objective: Add a validation to the Post model to ensure the title is unique among posts published in the current year.

Instructions:

  1. Add a custom validation method in post.rb that checks the uniqueness of the title for the current year.
  2. Use this validation only when a new Post is created or its title is updated.

Challenge 4: Implement a Simple Service Object

Objective: Create a service object to send an email notification when a new user signs up.

Challenge 5: Refactor Existing Code

Objective: Refactor the provided code in the PostsController.

Instructions: Ensure the functionality remains intact.

challenge's People

Contributors

bgvo avatar

Watchers

 avatar

Forkers

railsome

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.