GithubHelp home page GithubHelp logo

merb / merb_datamapper Goto Github PK

View Code? Open in Web Editor NEW
15.0 15.0 8.0 520 KB

Merb plugin that provides support for using datamapper within a merb application

Home Page: http://github.com/merb/merb_datamapper

License: MIT License

Ruby 100.00%

merb_datamapper's Introduction

Merb

Merb is a web development framework for fast, simple, and powerful development. For more information, check out:

This is the 1.2 development branch. Expect things to break, and report issues at our Lighthouse tracker.

Modules

Merb consists of the following parts:

  • merb-core: Core functionality needed to bootstrap and run an application.
  • merb-action-args: Plugin to handle request parameters as parameters to controller actions.
  • merb-assets: Asset handling.
  • merb-slices: Slices are merb's application modules.
  • merb-cache: Support for content caches, e.g., memcache.
  • merb-gen: Generators for applications, plugins, and components.
  • merb-haml: Support for HAML
  • merb-helpers: Helpers for text and HTML formatting.
  • merb-mailer: MVC mail sending from an application.
  • merb-param-protection: Filter request parameters in controllers and logs.
  • merb-exceptions: Exception notifications as mail and through web hooks.

merb_datamapper's People

Contributors

benburkert avatar fabien avatar jonuts avatar kaichen avatar mattetti avatar merbjedi avatar michaelklishin avatar namelessjon avatar neaf avatar ngollan avatar pk avatar protocarl avatar snusnu avatar teamon avatar wycats avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

merb_datamapper's Issues

problem with :drop / :create / :reset etc using mysql

when 'mysql'
  user, password, database = config[:username], config[:password], config[:database]
  `mysql -u #{user} #{password ? "-p #{password}" : ''} -e "drop database #{database}"`
else

MySQL's commandl ine tool doesn't work that way, you can't specify the password following the -p argument. Further more, it seems the user specified in database.yml isn't ending up in that user var! When I try to run any of these rake tasks I get this:

ERROR 1045 (28000): Access denied for user '-p'@'localhost' (using password: NO)

The command line is getting well-munched here..

'host' from database.yml is ignored on create/drop/reset tasks

The 'host' option specified in database.yml is being ignored on the create/drop/reset tasks.

The fix is pretty simple, ie: for 'drop' change to this:

  host, user, password, database = config[:host], config[:user], config[:password], config[:database]
  `mysql #{host ? "-h #{host}" : ''} -u #{user} #{password ? "-p#{password}" : ''} -e "drop database #{database}"`

Also note I've specified the CORRECT handling of a mysql password on commandline (no space after -p) and altered config[:username] to reflect the ACTUAL config entry config[:user] both of which I notice still haven't been fixed here despite having an open ticket about it for some months and the fix being dead simple to implement...

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.