themed bootstrap causing problems in rails app devise and other view files - ruby-on-rails

rails application which using gems like devise,cancan now not storing some session based values like who created , created by after applying themed bootstrap directly into application.some of the view directories appeared twice. which themed bootstrap is best for rails application?

Related

Serve both Rails-generated views and Angular templates from the same Rails+Angular project

I have a Rails app with an AngularJS front end. For the main app, Angular handles the routing and serves the templates, but I'd like to serve Rails-generated views as well on the same project.
Why? I haven't found out an easy way to use Rails helpers and assets in Angular templates.
If I try to load Rails views with Rails routing, Angular immediately takes control and displays a blank page.
I'm pretty new to this technology stack (and web programming in general), so sorry if this is a very basic question, I didn't find any information on the internet about this.
This is my folder structure:
app
--assets
----javascripts // here lives the Angular app
------controllers // Angular controllers
------templates // Angular templates
...
--controllers // Rails controllers
--views // Rails views
...

How does Bootstrap work with Ruby on Rails?

I'm unfamiliar with how Bootstrap is implemented on a web app built on Ruby on Rails. I've been asked to create the front-end ,HTML/CSS for new pages. I strictly have been working with small, static sites so I don't know the way to go about this. I've seen that the CSS files only include the specific code that your page requires?
Does that mean that I will have to copy each component's Boostrap CSS to a separate CSS file for my page?
You can choose one of the following gems to get all the required components of bootstrap in your rails application:
Twitter Bootstrap Rails
Less Rails Bootstrap
Furthermore detailed info to implement it on pages can be get # http://www.gotealeaf.com/blog/integrating-rails-and-bootstrap-part-1

bootstrap-generators not using the templates when building a new scaffold

I have a brand new rails app and want to use the bootstrap-generators gem.
I have followed the instructions on their website, but if I now generate a scaffold I don't get the bootstrap styled inputs/buttons/etc.
screenshot
Notice that the button is the standard rails button, not the nice bootstrap button. As you can see, the main layout does have bootstrap theme working
I can see that the bootstrap template files are in the /lib/templates/erb/scaffold folder. If I now create a new scaffold it seems that these templates are ignored.
What am I missing, and why woudn't the bootstrap scaffold templates be used?
Spring was running in the background and therefore the new template files were not being loaded. Simply typing 'spring stop' fixed all my problems :)

User custom theme support with rails assets pipeline

I have a rails app that allows users to create their own website easily but they share the same page structure.
I plan to switch my classic rails views for a templating language such as liquid or handlebars.
The goal is that my users could upload their own version of templates and css to completely customize the look and feel of their website.
Example of workflow :
User upload a theme folder containing Templates and Css files
Their website automatically uses this new templates and designs
Is it possible to do that and continue to take advantages of the Rails Assets pipeline?
Thanks a lot for your answers !
This might be something you can try: http://www.krautcomputing.com/blog/2012/03/27/how-to-compile-custom-sass-stylesheets-dynamically-during-runtime/.
I've used this in a Rails 3.2x project and it works fine, but I'm having difficulties getting it working in a different (somewhat modified Rails 4 project).
It's older article about compiling css on the fly using the Sprockets::StaticCompiler class.

Adding animation to Ruby on Rails site.

If I use JQuery to add animation to my Ruby on Rails web application, how is JQuery recognized by Rails? Is it just a matter of adding a Jquery gem? Or are some configuration instruction set in the code?
I'm still learning Ruby on Rails. And I would like to add custom animation to my home page but am not sure what tools/technology plays well with Ruby on Rails. JQuery, javascript, Ajax? Does anyone have any data regarding what percent of Rails application use which?
if you are using Rails 3+ JQuery should be included by default.

Resources