GithubHelp home page GithubHelp logo

announcements's People

Contributors

chaserx avatar svileng avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

announcements's Issues

Mass assignment errors in Rails 3.2

Following the instructions in the readme gives a mass assignment error in Rails 3.2. May want to add the without_protection flag to the sample:

Announcement.create({:body => 'This is my first announcement!'}, :without_protection => true)

Gem issue

whenever i do

gem install announcements

i get...

ERROR: While executing gem ... (Gem::DependencyError)
Unable to resolve dependencies: railties requires actionpack (= 3.2.0); actionmailer requires actionpack (= 3.2.0)

even thoo i just updated these:
activemodel-3.2.0
actionpack-3.2.0
actionmailer-3.2.0
activemodel-3.2.0

seems to be something with your gem so i thought i'd let you know.

feature request: show annocement(s) only for paritcular time

Would be great to add column ends_at attribute which define when the stops to show.
If the ends_at attribute is nil, then the annoucement is shown forewer.

Going further:
add method for easy adding time period from now, e.g.
Announcement.new(for: 10.minutes, body: "Server is going to upgrade, some functionality should be limited now").

  def for(period)
    self.ends_at = period.from_now
  end

Is this a way you are planning to extend this gem? Would be such pull request wellcome?

P.S. The same extension should be for starts_at attribute, but it is not necessary for me.

help needed please

can i make a relation between announcement and comments ? to make the users able to comment on any announcement ?
can i generate a controller too ?
how to add a hyper link in the announcement ?

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.