Questions tagged [merb]

Merb, short for "Mongrel+Erb", is a model-view-controller web framework written in Ruby. Merb adopts an approach that focuses on essential core functionality, leaving most functionality to plugins.

72 questions
1
vote
0 answers

How to add custom renderer for will_paginate in merb?

As I need to have pagination tags done this way: I'd like to add custom renderer to Merb app. When I put code module SearchPagination class LinkRenderer < WillPaginate::ActionView::LinkRenderer …
user2176575
  • 153
  • 1
  • 10
1
vote
2 answers

Merb, Bundler, RVM and 1.9.1 = Could not locate Gemfile (Bundler::GemfileNotFound)

Can anyone suggest how to fix this (Ubuntu 9.10): /home/chris/.rvm/gems/ruby-1.9.1-p378/gems/bundler-0.9.26/lib/bundler/shared_helpers.rb:42:in `default_gemfile': Could not locate Gemfile (Bundler::GemfileNotFound) from…
Chris McCauley
  • 25,824
  • 8
  • 48
  • 65
1
vote
0 answers

Mixed dynamic routes in Rails/Merb

Im trying to figure out the best way to map simple routes into one url. Application contains of 4 models: Location, Category, Budget, Company. But each model could be mapped to single url like this. For real-world example you can check out…
Dan Sosedoff
  • 2,869
  • 5
  • 28
  • 34
1
vote
3 answers

Best way to list a Merb::Slices dependencies?

I'm creating a list of the Slices in my Merb app, like this: Merb::Slices.each_slice do |slice| I'd like to get the list of dependencies for each of this slice, any idea how to access it? I'm still reading merb code, solution might come soon ;)
Alex
  • 26,406
  • 5
  • 30
  • 36
1
vote
3 answers

Problems with Merb on Snow Leopard

I've recently started looking at Merb, for use with some small projects around the office. I'm trying to set up my first project following the docs, and am encountering an exception such as: foo:beta user$ merb Merb root at:…
hamhoagie
  • 13
  • 3
1
vote
1 answer

`load_dependency': undefined method `activate' for Gem:Module (NoMethodError)

b-core-1.0.13/lib/merb-core/core_ext/kernel.rb:142:in load_dependency': undefined methodactivate' for Gem:Module (NoMethodError) from /home/subrahmanyam/.rvm/gems/ruby-1.8.7-p374@mostfit/gems/merb-core-1.0.13/lib/merb-core/bootloader.rb:405:in…
Moorthy
  • 31
  • 1
  • 6
1
vote
2 answers

`default_gemfile': Could not locate Gemfile (Bundler::GemfileNotFound)

I am new to the ruby on merb, using ruby 1.8.7 version. while run the app it showing like this `default_gemfile': Could not locate Gemfile (Bundler::GemfileNotFound) from…
Moorthy
  • 31
  • 1
  • 6
1
vote
0 answers

Merb multidomain session cookie

Is there a way to set session cookie work for all subdomains (e.g. *.domain.com) from Merb configuration file (config/init.rb) Looking for something like Merb::Config.use do |c| c[:session_cookie_domain] = '.domain.com' end
Dan Sosedoff
  • 2,869
  • 5
  • 28
  • 34
1
vote
1 answer

merb_auth_password_slice does not maintain the session

Having integrated merb_auth_password_slice as per the README, I can successfully login as redirect_after_login is being triggered, although session.authenticated? returns false. Just trying the basic auth strategy for now (password form), can't seem…
MatthewFord
  • 2,918
  • 2
  • 21
  • 32
1
vote
1 answer

merb callbacks equivalent in RAILS

Is there rails equivalents for : Merb::BootLoader.after_app_loads Merb::BootLoader.before_app_loads Merb::Assets::JavascriptAssetBundler.add_callback Merb::Assets::StylesheetAssetBundler.add_callback Thanks,
Mike
  • 5,165
  • 6
  • 35
  • 50
1
vote
1 answer

What is the proper way of handling xml-stylesheet :xmlns:blah with haml?

I'm trying to hook up a blog with some xml namespaces and xml stylesheets. The ugly way that I'm doing this currently looks like so: !!! XML = partial('xmlstyle') %channel ......blah..... = partial('xmlend') where _xmlstyle.xml.erb looks…
eyberg
  • 3,160
  • 5
  • 27
  • 43
1
vote
1 answer

Getting Permission denied - /mnt/project-name/config/../tmp/ruby-inline/.ruby_inline

I have made changes to my Merb application and deployed those to uat for testing but I am getting Permission denied - /mnt/project-name/config/../tmp/ruby-inline/.ruby_inline I checked for the permissions in the path according to Permission denied…
user1653027
  • 789
  • 1
  • 16
  • 38
1
vote
0 answers

javascript and css response return 404 in merb application

I'm trying to setup a merb application now trying to start the merb as normal rack application using either by thin , unicorn or plainly using rackup the html content are returned but the javascript and css response is returning 404 ~ No routes…
Ratatouille
  • 1,372
  • 5
  • 23
  • 50
1
vote
4 answers

Good framework for Ruby web development

Basically I am java developer and exploring ruby and ruby related framework right now. I am mostly working on web based projects. I had heard about RoR and Merb for web development in ruby. I am looking for good tutorial/books for Merb.
Silent Warrior
  • 5,069
  • 8
  • 41
  • 52
0
votes
1 answer

Merb authentication question, _message variable

Im using merb, and getting weird variable in url after authentication. I figured out that variable contains base64 encoded data, but cannot understand why its appearing there, even if everything works ok. Just curious It looks like this:…
Dan Sosedoff
  • 2,869
  • 5
  • 28
  • 34