similar to: Synatx highlighting in Ruby

Displaying 20 results from an estimated 3000 matches similar to: "Synatx highlighting in Ruby"

2007 Jan 20
0
Markdown friendly synatx highlighting
Hello everyone! I am using markdown on my blog (Markdown Extra actually, thank you Michel!). I use code snippets heavily and I really appreciate that I shouldn't escape '<' and '>' manually. However I always wanted to use syntax highlighting for code snippets and it's a bit hard with markdown because most highlighters require some indication of a code language
2011 Feb 07
8
Pygments
The Pygments highlighter supports many more languages than CodeRay. Pygments is written in Python, but I''ve seen non-Python projects use it (Jekyll, Pygments). There''s also this: https://github.com/nex3/rb-pygments Any idea how much work it would be to add Pygments support to Webgen?
2004 Jul 13
1
Synatx Error on start with R --no-save < myfile.R
Dear all! I wrote my R-code with an editor and loaded it with source("my_file.R"). Everything works fine as expected. When I try to start my code with: R --no-save < my_file.R I do get a synatx error half way through. The version is 1.9.0 on a Linux system. To start it with R --no-save < my_file.R works on some machines but on some it doesn't. Are there any rules
2010 Mar 31
5
undefined method `each' for "":String
I implemented creating an object within another object according to this Railscast: http://railscasts.com/episodes/74-complex-forms-part-2 but I''m getting this error after I submit. Any ideas? undefined method `each'' for "":String -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this
2010 Feb 09
2
undefined method `generate_token'
Hi Everyone... I''m following a railscast episode on how to implement an invitation feature. It''s going really well, but i''ve hit a minor snag that I cant get over.. undefined method `generate_token'' for #<Invitation:0x2563bf8> The invite form allows me to check for a user, and whether they already have registered. If they have, the invitation is not
2006 Jul 06
4
Ruby code colorizer
Hi, Does anyone know of a html code colorizer for ruby source code? Ideally a typo plugin :) Regards, Jason
2010 Nov 14
5
Authlogic and rails 3 : NameError in User sessionsController#new
Hi everybody, I''ve installed Authlogic on Rails 3 following the Railscast (http:// railscasts.com/episodes/160-authlogic), and the resources I was able to find on the web, but I''m facing a problem. Once I''ve generated the user_sessions controller and mapped the login and logout routes, I get an error if I try to load the login page : uninitialized constant
2009 Jul 21
1
synatx error while running migration
hello to all, i am getting weird syntax error while running the rake db:migrate syntax error, unexpected tSYMBEG, expecting kDO or ''{'' or ''('' Apparently i am creating an engine in my main application using ''ruby script/generate plugin'' command in rails 2.3.0 with engine having its own separate database define in database.yml of main
2009 Mar 16
2
R-code in html help pages: syntax highlighting
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, A follow up to my previous post. It'd be good to have syntax highlighting in the html help pages. There is highlight (http://www.andre-simon.de/) which seems to be open source. Since code is delimited in the help file format, it should not be too difficult to run a highlighting program (actually, vim and emacs do this too) recursively and
2007 Jan 06
1
listing all functions in R
Dear List, I'm building an R syntax highlighting file for GeSHi [*] for a website I am currently putting together. The syntax file needs a list of keywords to highlight. How can I generate a list of all the functions in a base R installation? Ideally the list would be formatted like this: "'fun1', 'fun2', 'fun3'" when printed to the screen so I can copy
2010 Oct 31
4
Newbie - Rails 3 authentication question (Devise)
Hello! I''m working on my first Rails app and I have a question regarding authentication. I already have authentication for signing up, logging in, logging out, etc. What I need is an account email activation function and a reset password (forgot password) function. I have read a little bit about Devise and watched the Railscast episodes on it, it seems nice, but is it possible to add
2009 Jul 27
1
Displaying Friends Activity
Hi, I''m wondering the popular methods to display friends activity on user''s profile page. Any docs or tutorial will be helpful. I''m a newbie in RoR Thanks, Arun
2008 Oct 24
4
Railscast 75, Observe_field and Shopping Cart
Hi all, I have the shopping cart page where a user can add items dynamically through ajax as explained in Railscast episode 75. I am using observe_field to observe the ''quantity'' and ''cost'' fields to update the total field for each item. This does not work however, for records that are added through the Ajax. How can i name the fields and observe them as i have
2007 Dec 26
2
Overriding or changing HTML generated by date_select?
Hi, I''m looking for a way to customize the HTML forms generated by date_select. I''m especially keen on replacing the year and possibly day input by a simple text field, since honestly, I find listboxes for years to be quite retarded (if I wanted client-side validation, there would be better ways to do that instead of having people try and find their year of birth in a list of
2010 Dec 25
1
Advanced search without database
Hello guys, Im trying to make an advanced search form, actually i did like Ryan Bates teaches in this railscast : http://railscasts.com/episodes/111-advanced-search-form But my problem is that i dont want to save the searches in my database and i dont know how to do this... In the railscast, there was a comment like this: *14. Karl <http://www.vbsfinder.com/> May 26, 2008 at 23:01 *
2011 Dec 20
4
Custom Devise Controller
Hi Guys, I was wondering if sb could help me. I have the following problem: -I want to create a complex form using railscast tutorial ( http://railscasts.com/episodes/73-complex-forms-part-1). Well, to perform this I need to update my controller(in this case the controller responsible to manipulate user). But I''m using Devise gem and I don''t know how I could manipulate the
2012 Oct 19
1
Globalize3 gem, upload data from CSV
Rails 3.1.3 Globalize3 latest I am not sure if I can ask this question here in general Rails forum. But I''ll try. Currently I am using a gem, Globalize3, which is useful for model I18n. https://github.com/svenfuchs/globalize3 Say, I have a model City, having only one column, name. City names appear differently depending on the language, so perhaps this particular gem is useful.
2013 Mar 04
2
Model/google maps display
Hi all, I''m building a ror app and have a model with geo-coordinates would like to use the info in the model to generate a google map view, does anyone know what''s the best way to go round this? is is Google API?, I''ve also seen a gmaps4rails, any comments? Thank you in advance, Jax -- You received this message because you are subscribed to the Google Groups
2012 Aug 13
9
Using Jquery plugin "tokenInput" with rails
Hi, I made a contact manager app using rails. I added TokenInput plugin to introduce an instant contact search functionality in it. Tried following a railscast http://railscasts.com/episodes/258-token-fields but have been struggling with it for a while. Following is the code I use in my view <%= form_tag({:action => ''show'', :id => @contact_tokens}, :remote =>
2012 Jul 03
1
View with Variable Number of Fields
I''m a relative n00b when it comes to Rails. I''ve gone through Michael Hartl''s tutorials (both editions, books and screencasts) and I can build a basic CRUD web app without help. However, for a personal project I''m working on, I''m lost as to how to move forward. Here''s the situation ... I have a model called Project with two fields,