# Asset Pipeline moderno y frontend (Ruby on Rails) > Importmap-rails (Rails 7+), jsbundling/cssbundling, Hotwire (Turbo + Stimulus), Sprockets (legacy) - 18 preguntas de entrevista - Mid-Level - [Preguntas de entrevista: Ruby on Rails](https://sharpskill.dev/es/technologies/ruby-on-rails/preguntas-entrevista.md) ## 1. ¿Cuál es el sistema de gestión de assets por defecto en Rails 7+? **Respuesta** Importmap-rails es el sistema por defecto en Rails 7+ para gestionar los archivos JavaScript. Permite usar módulos ES nativos directamente en el navegador sin paso de bundling, mapeando los nombres de paquetes a URLs de CDN o archivos locales. Esto simplifica considerablemente la configuración del frontend al eliminar la dependencia de Node.js. ## 2. ¿Cómo agregar una biblioteca JavaScript externa con Importmap-rails? **Respuesta** El comando bin/importmap pin permite agregar una biblioteca JavaScript al archivo config/importmap.rb. Este comando resuelve automáticamente el paquete desde jspm.io o un CDN y agrega el mapping correspondiente. Por ejemplo, bin/importmap pin lodash agrega la línea pin para lodash apuntando al CDN. ## 3. ¿Qué helper de Rails usar para incluir los scripts JavaScript definidos en el importmap? **Respuesta** El helper javascript_importmap_tags genera las etiquetas necesarias para cargar el importmap y el punto de entrada JavaScript. Produce una etiqueta script type='importmap' que contiene los mappings, así como una etiqueta para cargar el archivo application.js. Este helper reemplaza a javascript_pack_tag usado con Webpacker. ## 15 preguntas más disponibles - ¿Cuál es la diferencia principal entre jsbundling-rails y cssbundling-rails? - ¿Cuál es el rol principal de Turbo Drive en Hotwire? Regístrate gratis: https://sharpskill.dev/es/login ## Otros temas de entrevista Ruby on Rails - [Fundamentos de Ruby](https://sharpskill.dev/es/technologies/ruby-on-rails/preguntas-entrevista/ruby-basics.md): 25 preguntas, Junior - [Programación orientada a objetos en Ruby](https://sharpskill.dev/es/technologies/ruby-on-rails/preguntas-entrevista/ruby-oop.md): 20 preguntas, Junior - [Fundamentos de Rails](https://sharpskill.dev/es/technologies/ruby-on-rails/preguntas-entrevista/rails-fundamentals.md): 18 preguntas, Junior - [Routing & Controllers](https://sharpskill.dev/es/technologies/ruby-on-rails/preguntas-entrevista/routing-controllers.md): 22 preguntas, Junior - [Fundamentos de ActiveRecord](https://sharpskill.dev/es/technologies/ruby-on-rails/preguntas-entrevista/active-record-basics.md): 25 preguntas, Junior - [Views y plantillas ERB](https://sharpskill.dev/es/technologies/ruby-on-rails/preguntas-entrevista/views-erb-templates.md): 20 preguntas, Junior - [Asociaciones de ActiveRecord](https://sharpskill.dev/es/technologies/ruby-on-rails/preguntas-entrevista/active-record-associations.md): 24 preguntas, Mid-Level - [Consultas avanzadas de ActiveRecord](https://sharpskill.dev/es/technologies/ruby-on-rails/preguntas-entrevista/active-record-queries.md): 28 preguntas, Mid-Level - [Formularios Rails](https://sharpskill.dev/es/technologies/ruby-on-rails/preguntas-entrevista/rails-forms.md): 20 preguntas, Mid-Level - [Autenticación y Autorización](https://sharpskill.dev/es/technologies/ruby-on-rails/preguntas-entrevista/authentication-authorization.md): 22 preguntas, Mid-Level - [Modo API de Rails](https://sharpskill.dev/es/technologies/ruby-on-rails/preguntas-entrevista/rails-api-mode.md): 20 preguntas, Mid-Level - [Pruebas con RSpec](https://sharpskill.dev/es/technologies/ruby-on-rails/preguntas-entrevista/rails-testing-rspec.md): 24 preguntas, Mid-Level - [ActiveJob & Background Jobs](https://sharpskill.dev/es/technologies/ruby-on-rails/preguntas-entrevista/active-job-background-jobs.md): 20 preguntas, Mid-Level - [ActionCable & WebSockets](https://sharpskill.dev/es/technologies/ruby-on-rails/preguntas-entrevista/action-cable-websockets.md): 18 preguntas, Mid-Level - [ActionMailer](https://sharpskill.dev/es/technologies/ruby-on-rails/preguntas-entrevista/action-mailer.md): 18 preguntas, Mid-Level - [ActiveStorage](https://sharpskill.dev/es/technologies/ruby-on-rails/preguntas-entrevista/active-storage.md): 20 preguntas, Mid-Level - [Estrategias de caching](https://sharpskill.dev/es/technologies/ruby-on-rails/preguntas-entrevista/caching-strategies.md): 20 preguntas, Mid-Level - [Migraciones avanzadas](https://sharpskill.dev/es/technologies/ruby-on-rails/preguntas-entrevista/database-migrations-advanced.md): 20 preguntas, Mid-Level - [Rails Engines y apps modulares](https://sharpskill.dev/es/technologies/ruby-on-rails/preguntas-entrevista/rails-engines-modular-apps.md): 18 preguntas, Senior - [Optimización del rendimiento](https://sharpskill.dev/es/technologies/ruby-on-rails/preguntas-entrevista/performance-optimization.md): 26 preguntas, Senior - [Patrones de diseño en Rails](https://sharpskill.dev/es/technologies/ruby-on-rails/preguntas-entrevista/rails-design-patterns.md): 22 preguntas, Senior - [Metaprogramación en Ruby](https://sharpskill.dev/es/technologies/ruby-on-rails/preguntas-entrevista/ruby-metaprogramming.md): 20 preguntas, Senior - [Seguridad en Rails](https://sharpskill.dev/es/technologies/ruby-on-rails/preguntas-entrevista/rails-security.md): 22 preguntas, Senior - [GraphQL con Rails](https://sharpskill.dev/es/technologies/ruby-on-rails/preguntas-entrevista/graphql-rails.md): 20 preguntas, Senior - [Despliegue y Producción](https://sharpskill.dev/es/technologies/ruby-on-rails/preguntas-entrevista/rails-deployment-production.md): 20 preguntas, Senior - [Monitoring & Logging](https://sharpskill.dev/es/technologies/ruby-on-rails/preguntas-entrevista/monitoring-logging.md): 20 preguntas, Senior - [Estrategias de actualización de Rails](https://sharpskill.dev/es/technologies/ruby-on-rails/preguntas-entrevista/rails-upgrade-strategies.md): 18 preguntas, Senior --- Source: SharpSkill (https://sharpskill.dev), tech interview preparation for your real stack. HTML version of this page: https://sharpskill.dev/es/technologies/ruby-on-rails/preguntas-entrevista/rails-asset-pipeline