background preloader

Ruby on Rails CMS that supports Rails 3 - Refinery CMS

Ruby on Rails CMS that supports Rails 3 - Refinery CMS

Refinery : le meilleur du CMS open source sur Ruby on Rails Pour une entreprise, une première approche du web est bien souvent de mettre en ligne un site internet pour mettre en valeur son savoir-faire et ses produits. La solution recommandée est alors le site web de type CMS. Simplement, le CMS (Content Management System) est un site entièrement administrable et qui rend le propriétaire du site web indépendant. De ce fait, le site CMS est aussi très bien adapté pour des publications fréquentes sous un système éditorial. Chez Synbioz, nous avons développé plusieurs sites utilisant le CMS Refinery et développé nos propres moteurs pour s’adapter aux demandes de nos clients, comme par exemple l’optimisation d’URLs pour le SEO (Search engine optimization) ou encore la gestion de newsletters. Nous devions mettre à l’honneur Refinery, voici donc pourquoi nous avons choisi ce CMS. Les différents éléments composant le CMS Refinery : Design et Ergonomie Toutes les formes de design web et d’ergonomie sont possibles, du design sobre au plus impactant.

frodefi/rails-messaging Zena, the most powerful Ruby on Rails CMS A treatise on mailboxer ruby gem | The Admin Mailboxer gem adds messaging capability to your models.By far of all messaging gems we have found this one easy to implement / add to your models with good documentation. Mailboxer Installation In you rails application add gem "mailboxer", "~> 0.9.0" to your Gemfile and run bundle install to install it. Now go to rails application directory and run to generate the necessary migrations and then migrate the changes to your database rails g mailboxer:install rake db:migrate Configuring Maiboxer In rails you can create an intializer called mailboxer.rb in folder /config/intializer and modify the default behaviour of mailboxer. Preparing the Model In your user model add acts_as_messageable and implement the method name as shown below class User < ActiveRecord::Base attr_accessible :email, :first_name, :last_name acts_as_messageable # Returns the name of the user def name return "#{first_name} #{last_name}" end end Basic Messaging To send a message to user2 from user1 To reply to the message Misc stuff

Weblog How to enable Travis CI for an extension John Muhl This information is also available on the wiki where it will receive updates as needed. Travis CI is a flexible and easy to use continuous integration server; see the Getting Started page for more details. The flexibility means that there are any number of ways to setup and test your extensions. Here is one way. First you need to add a .travis.yml file to the root of your repository. rvm: - 1.8.7 - 1.9.2 - 1.9.3 before_script: ". The rvm array shows the Ruby versions you want to test against; since Radiant 1.0 supports the three latest Ruby releases your extension should too. Next up we need to create the before_script referenced above. cd ~ git clone cd ~/radiant if [[ $RADIANT_VERSION ! Replace YOUR_REPOSITORY_NAME and YOUR_EXTENSION_NAME in the before_script with the actual name of your repo and extension; e.g. radiant-sheets-extension and sheets respectively. Radiant 1.0.0 Release Candidate 4 Jim Gay

Customizing Mailboxer mailer views | The Admin To copy the mailboxer mailer views to your rails app run This will generate two folders, message_mailer and notification_mailer with html & text views for messages, notification and message replies respectively. Next create a modify the initializer of mailboxer to include the following config Mailboxer.setup do |config| #Enables or disables email sending for Notifications and Messages config.uses_emails = true #Configures the default `from` address for the email sent for Messages and Notifications of Mailboxer config.default_from = "admin@yoursite.com" end Add the following method to your messageable model #Returning the email address of the model if an email should be sent for this object (Message or Notification). To change the title of you mail messages open config/locales/en.yml and you will see the following line belonging to each mail you can the below line to suit to your needs

mailboxer/mailboxer

Related: