similar to: Rails Syntax

Displaying 20 results from an estimated 70000 matches similar to: "Rails Syntax"

2009 Aug 14
7
"sudo gem install rails" not able to install thin dependency
Hi folks, I''m having trouble getting gems to install rails. It just keeps asking me which version of thin I want to install. Until I choose skip or cancel, in which case I''m told that something has gone wrong. Any advice? Thanks kindly, Tommy PS: Gems is 0.94. --------------------------------------------------------------------- tommy@tommy-laptop:~/www/blog$ sudo gem
2009 Nov 01
19
will_paginate vs mislav-will_paginate
I''ve just reinstalled linux (9.10) and am trying to match my gem environment to our server''s. I''m having a problem with will_paginate. On the server, under gem list, i have "mislav-will_paginate (2.3.6)". So, i''m trying to install that locally. Following the instructions on the will_paginate page, http://wiki.github.com/mislav/will_paginate,
2009 Nov 06
1
JSON::ParserError
Hi all..... I am using Json 1.1.7 When I try to parse with the help of it, it gives me error like "618: unexpected token at ''Error: you are requesting an invalid URL.''" Help me out of it.. Thanks..... -- Posted via http://www.ruby-forum.com/.
2009 Aug 16
11
best "Rails on the cloud" solution?
A search of this forum for "cloud" brought up a pretty anemic and mostly year or more old list of stuff. That was a bit of a surprise to me. I''m interested in getting opinions on the easiest way to deploy a Rails app to a well known (S3 or similar) "cloud" server. It should be something with little or no "installation" or "establishment" fees and
2007 Apr 01
12
How to List Records in Descending Order?
I am brand-new to RoR and have only followed and replicated the few tutorials that are out there. I have searched and searched, but cannot find an answer to this simple question: How can you list records in descending order? I have the cookbook example loaded, but can''t seem to list the recipes in reverse order (by the primary key - id). Thanks ahead of time for any and all help. --
2009 Oct 23
10
Rspec Tutorial
Hi Everybody, Greetings!! I want to use rspec for my applications. Please guide me with the Rspec tutorial. I want a good example to start with. Please help me by providing good tutorials on Rspec to start with. I actually followed the example from http://rspec.info Please guide me on more examples. Waiting for your reply. --~--~---------~--~----~------------~-------~--~----~ You received
2008 Sep 22
3
syntax error in RJS
I''m new to Ruby on Rails and came across a problem I could not solve alone. I''ve a pretty simple RJS file that looks like the following: 3.times do page.insert_html :bottom, ''messages'', ''test'' end page.call ''updateMessageWindow'' However this snippet gives a syntax error: ActionView::TemplateError (compile error D:/Eigene
2009 Mar 17
3
How to truncate a table from a rake file
I am new to rails and want to figure out the syntax for truncating a table using a rake file. Any ideas? thanks in advance! -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to
2009 Oct 19
3
routing namespaced controllers
Hi, I have one controller in the /app/controllers/animals_controller.rb directory, and another in /app/controllers/production/services_controller.rb. The thing is that one Animal has many Services, and i''d like to access to them using something like: http://localhost:3000/animals/1/production/services/1 or at least with: http://localhost:3000/animals/1/services/1 I tried the last one
2009 May 09
7
does somebody use XCode on Mac for RoR instead of TextMate?
does somebody use XCode on Mac for RoR instead of TextMate? I wonder how is it compared to TextMate... TextMate uses the default font of Monaco... the Xcode screenshot on Wikipedia uses Courier... I wonder if Xcode looks as good as TextMate when the font is changed to Monaco as well? Thank you. -- Posted via http://www.ruby-forum.com/.
2009 Feb 20
6
rails 2.2.2 does not work with ruby 1.9.1
Hi everyone! I''ve installed new Ruby 1.9.1 from sources (http://www.ruby-lang.org/en/), then "gem install rails", everything was ok during installation, all tests ("make test") were ok too. After all, i wanted to create my new RoR project, but I could not start it. Plz help me Here is my terminal: [renat@localhost rails]$ rails mysite create create
2009 Mar 12
8
Segment error loading rails
I have downloaded ruby 1.9.1 binaries to c:\ruby191 (I have ruby 1.8.6 under c:\ruby). I then downloaded gems 1.3.1 and ran "gem install rails --include-dependencies" from c:\ruby191\bin and it ran and came up with a segment error and killed the rails install. Any ideas what I am doing wrong? Thanks Chris -- Posted via http://www.ruby-forum.com/.
2009 Aug 04
6
form_for
hi everybody... I have a form_for in that, onclicking submit button i am calling a javascript for validation.If validation fails that form_for doesnt do anything.But even the validation fails it goes to the controller and action. here my code: <%form_for :promotion_code,
2007 Apr 01
7
database.yml: encoding: utf8 does not work
Hi all According to the Agile 2nd Ed book I added the line encoding: utf8 to my database.yml connections. But now when running rake I get plenty of errors: Character set ''utf-8'' is not a compiled character set and is not specified in the ''/usr/local/mysql/share/mysql/charsets/Index'' file What''s wrong here? I checked this Index file, but it seems to
2009 May 27
4
Scaffolding Results Format
Hi Everyone, I built a scaffold and I''m having trouble getting results properly formatted. (I need to get the data into multiple columns instead of just one big column) I can''t get all of my CSS to work properly in scaffold.css, layout/books.rhtml, or the books/index.rhtml.erb Anyways, maybe you have a suggestion. Default view (127.0.0.1:3000/books) Title Abstract
2009 Feb 15
12
Using MacPorts To Install Ruby 1.9.1 and Rails 2.3.0 RC1
Using MacPorts To Install Ruby 1.9.1 and Rails 2.3.0 RC1 WARNING: If you want to live on the edge, please continue with the steps below. Also, please be aware that all gems are not fully compatible with Ruby 1.9.1 stable release (i.e. 1.9.1p0). Furthermore, this installation requires you to remove ALL Ruby related gems and ports because we are performing a clean install.
2006 Mar 03
5
Yahoo UI Library with Rails
Has anybody used the Yahoo UI library successfully with rails? I am particulary interested in some of the ratings tools they used (like 4 out of 5 stars thing rating a post). Curious to see if anyone out there has worked with this at all. adam -------------- next part -------------- An HTML attachment was scrubbed... URL:
2009 Apr 19
3
Exclude Files from Capistrano / Source Control
Hello, I have some video clips I want to make accessible through my web server (through the public folder). However, they are large and I do not want to commit them to Git so that capistrano can automatically upload them. What''s the best way of doing this? Thanks, John -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this
2007 Jun 18
4
HTML embed tag and rails...
I have an embeded pluggin that I must use inside my RoR app. We have set up an application.rhtml page that renders the top, side menu and center of the application for every page via DIV''s. This works great. The problem.. This embeded plugin is a Third party plugin that they have just created for the Mac OSX and Safari and every time I load the page, it re-loads the plugin and the
2010 Mar 01
3
has_many models in a form
Hi, guys. There are four models in the program, A has_many B through C, B has_many A through C, A has_many D, D belongs_to A. I have a form to create A. Inspired by Ryan Bates'' railscasts I was able to create A and D in the same form, and link A to B(created beforehand) through C in the same form as well. Is it possible to create A and B in the same form? Thanks in advance. -- Posted