similar to: What is this view syntax? Old beast forum code...

Displaying 20 results from an estimated 100 matches similar to: "What is this view syntax? Old beast forum code..."

2012 Oct 18
1
routing issue with mounted engine - Rails 3.2.8
I mounted the Forem::Engine in my app MyApp::Application.routes.draw do scope "/:locale" do ... resources :sites, :only => [:none] do get ''home'', :on => :collection get ''events'', :on => :collection end .. mount Forem::Engine, :at => "/forums", :as => :forums, constraints: lambda { |r|
2009 Sep 09
5
Newbie question: undefined method 'number_with_delimiter'(probably configuration problem)
Hi all: i am using gem to insall rails 2.3.3 and using $rails myapp to generate my application, but strangely i can''t use the number_helper below is my env: export RUBY_HOME=$HOME/ruby export GEM_HOME=$HOME/gems export RUBYLIB=$RUBY_HOME/lib:$RUBY_HOME/lib/ruby:$RUBY_HOME/lib/ site_ruby/1.8 export PATH=$HOME/gems/bin:$HOME/ruby/bin: and: $ locate number_helper.rb
2008 Feb 20
1
text_field_tag - different parameter name
Hi, I have one problem with validation I am creating e-shop and I have products. This view look like this: <% for product in @category.products %> <div class="produktyBox"> <%= product.title %><br /> Price: <br /> <div style="color:red; font-size:large; font-weight:bold; margin- bottom:5px"><%=
2007 Dec 06
3
number_to_currency
I am using the number to currency function because i live in the uk and the company want me to only show values of the pound of course.I have created all my application using ruby script/generate scaffold_resource.... I have come across with a problem... this code is in my applcation: def number_to_currency(number, options = {}) options = options.stringify_keys precision, unit, separator,
2007 May 12
4
Multiply and format with thousands separator
I have just started with Ruby and Rails and am still greatly confuse, finding the usual tutorials not much help. What I want to do is take two numbers from my database, multiply them together and display them in a list with a comma for the thousands separator. This would be very easy to do in a spreadsheet, so I assumed it would be easy to do in Ruby on Rails but I can''t work out how. I
2006 Jan 24
7
formatting numbers with commas
I needed to format numbers with commas to make it more human readable. Here''s how I did it. def commify(number) c = { :value => "", :length => 0 } r = number.to_s.reverse.split("").inject(c) do |t, e| iv, il = t[:value], t[:length] iv += '','' if il % 3 == 0 && il != 0 { :value => iv + e, :length =>
2006 Jul 08
4
Application generation
I love rails but I want more. :-) I''d like a generator that generates a complete application. It would read an information model, and from it generate the MVC''s with a validation-constrained model, errors and exceptions, page navigation and rich view layout... The information model would be represented by ruby "meta" classes, and could be generated as an
2006 Feb 28
4
number_to_currency UK pounds
I work in the UK and therefore most of my currency figures will be in UK pounds. I realise that to format a number to a currency format I can use: number_to_currency(amt, :unit => "?") but it would be more convenient to set ? as the default currency symbol. What is the best way to do that? Should I edit line 39 of this file:
2006 Feb 21
4
displaying double digits
Hi, I have a question about displaying digits in Rails. whenever I print the price of an item, if the last digit is a zero or double zeros then it doesn''t display properly. How do I display a number so that it looks like currency? thank you! -- Posted via http://www.ruby-forum.com/.
2007 Sep 05
0
Savage Beast plugin: Question on the reply form
Hello! I have integrated the Savage Beast plugin with my site. For some reason, during the integration, the standard large black reply form that gets displayed when a user hits "Reply to topic", is *always* getting displayed at the bottom of the screen ... before the user hits "Reply to topic". The built in "cancel" link on the editbox will not remove the form, and
2009 Dec 31
0
Savage Beast For Rails 2.3
Hello rails.. I have some difficulties when integrate savage beast forum with my rails app 2.3. I found error : uninitialized constant SavageBeast::UserInit::Monitorship and then about routes..., how to set routes in order to when access http://mysite/forums the savage beast forum can be run. Anyone has a real implementation savage-beast in a rails app.., I thinks that will very help
2008 Nov 23
0
Recent and Popular Posts in Beast Forum
Hi, so I''ve integrated the Beast forum into my ruby on rails website and would like to display some of the forum data throughout the website. Basically, I''d like to list the last 5 posts to a UNIQUE topic, and also the most popular topics. I''m sure this wouldn''t be too tough to accomplish but I was wondering if anyone else had already implemented it so that it
2016 Feb 04
0
AST-2016-001: BEAST vulnerability in HTTP server
Asterisk Project Security Advisory - AST-2016-001 Product Asterisk Summary BEAST vulnerability in HTTP server Nature of Advisory Unauthorized data disclosure due to man-in-the-middle attack Susceptibility Remote
2008 Jun 24
3
Running the beast forum for the first time
Hey guys, so I think I''ve done my installation of the beast forum correctly. Its done the database migration and all the tables look fine. Now, when I run ruby script/server and point my browser at http://localhost:3000/ I get a "500 Internal Server Error" error. Anybody know whats causing this? I''ve been trying to work it out for ages now and its wrecking my head
2018 Nov 19
2
[Bug 108783] New: Nouveau crash in X server / display system with PAGE_NOT_PRESENT/NULL_DMAOBJ running Minecraft Feed The Beast Continuum
https://bugs.freedesktop.org/show_bug.cgi?id=108783 Bug ID: 108783 Summary: Nouveau crash in X server / display system with PAGE_NOT_PRESENT/NULL_DMAOBJ running Minecraft Feed The Beast Continuum Product: xorg Version: unspecified Hardware: x86-64 (AMD64) OS: Linux (All)
2006 Nov 22
4
Know ye of such a beast ?
// hoping this is sufficiently on-topic // php-driven, markdown-aware, open source wiki/cms that has some degree of version control, a flexible system for privs/access control, is installable (or buildable) on OS X and has an easy installer for windows ?
2010 Aug 10
2
undefined method `has_many' for Object:Class +Savage Beast 2.3 plugin
Hi, i am using Savage Beast 2.3 plugin for the forum and i got and error undefined method `has_many'' for Object:Class C:/forum/vendor/plugins/savage-beast/lib/savage_beast/user_init.rb: 9:in `included'' C:/forum/vendor/plugins/savage-beast/lib/savage_beast/user_init.rb: 7:in `class_eval'' C:/forum/vendor/plugins/savage-beast/lib/savage_beast/user_init.rb: 7:in
2007 Jun 04
1
acts_as_rateable in Beast
I''m trying to implement acts_as_rateable to my Beast installation to give users the option to rate posts (like reddit). I chose acts_as_rateable as it supposedly easily allows reddit-type voting but I''m having some problems setting it up and the documentation seems outdated. (http://www.juixe.com/techknow/index.php/2006/07/05/acts-as-rateable-plugin/) So far, I''ve
2006 Jun 16
2
Need to call C++ processing beast from backgroudrb
Hello, Bravo Ezra for Backgroundrb! What an elegant piece of engineering. I envision many folks like myself looking at our CPU hogging executables and finally seeing a clean path to the Web. I was wondering if any folks have a good strategy for calling out to a C++ (or any other compiled) executable from a worker. Is the only option to call system() from a worker? That feels a bit unsatisfying.
2008 Aug 30
3
Working with sessions in beast forum
Hey, I''m designing an app which displays the events near a user in RoR. I''m using the beat forum to facilitate user management/sessions/etc. I''ve edited the sessions table in the Beast database to contain a "session_location" value and what I''d like to do is to set this to the users location when they log in. This would allow them to change their