similar to: RoR uses something rather than erb or eRuby?

Displaying 20 results from an estimated 3000 matches similar to: "RoR uses something rather than erb or eRuby?"

2009 Apr 21
12
still cannot install rails on windows
if i follow the instructions on: http://agilo.us/2009/03/15/rails-on-windows/ the command gem install sqlite3-ruby will give --------------------------------- Building native extensions. This could take a while... ERROR: Error installing sqlite3-ruby: ERROR: Failed to build gem native extension. c:/ruby/bin/ruby.exe extconf.rb checking for fdatasync() in rt.lib... no checking for
2006 Jun 22
2
eRuby/erb
Hello. Prospective Mongrel user here. Can Mongrel act as a server for eruby or erb files? Example: <html> <body> <p>The time is <%= Time.now %></p> </body> </html> Pistos
2009 May 26
9
cookies are mandatory for Rails app?
is it true that Rails depend on cookies? It seems that flash is a part of session, and session uses cookies... so when i disable cookie in Firefox, what was working became ActionController::InvalidAuthenticityToken so is it true that for a RoR app to work, cookies are mandatory? -- Posted via http://www.ruby-forum.com/.
2006 Jun 30
2
Eruby.import -> "uninitialized constant" error
I''m working on porting a dynamic website done in PHP over to mod_ruby. I have everything set up and working nicely (I can make a .rhtml page, put ruby code between <% %> and it works etc), but when I try to use "Eruby.import" as a sort of analog to PHP''s "require_once()", I run into trouble. 1) eruby is in my cgi-bin 2) here''s a sample of
2007 Apr 19
4
render_to_string in a model ?
I have a batch job that will call script/runner, I would like in this call to create html formated email and save it to the database. This is easy enough in a controller with yournewhost.email = render_to_string :action => "email_newhost_ready", :layout => false But render_to_string is only available in controller action pack, is there a easy way to render_to_string in a Model? Or
2006 Jun 04
4
eRuby & Rails: Not Compatible
I''m new to Ruby, Rails, and this list. I''ve tried searching for an answer but it all seems to be over my head. I have all the books but again they seem to leave me on my own to figure out the stuff that really matters. Where is the best place to find out the details? Exactly what are these much celebrated "naming conventions"; i.e. where do I find an exhaustive
2007 Jun 27
5
Regexp not matched
Sorry, meant to post this in the rails forum. Anyways, how would I write a rescue method to recover from a failed regexp parsing with error "regexp not matched" -Thanks -- 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
2007 Jul 21
3
manging rescues
What''s the recommended way to catch errors like this: NoMethodError in Register#confirm Showing app/views/register/confirm.rhtml where line #4 raised: undefined method `namen'' for nil:NilClass I get this error when someone does somethinh like: http://.........../register/confirm?email=jkdsfadslkjflksd If I make: remail = params[:email] @user = Request.find(:first,
2008 Dec 03
2
Rails functional test how to assert json result?
As title, I want to have my functional test check results from a json render result, how can I achieve this? --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this
2007 Jul 07
6
Help in upgrading from 1.1.6 to 1.2.3
Hi, I was developing a rails app with version 1.1.6 that just worked fine. I decided to upgrade to 1.2.3 and then, I keep getting that horrible message: "Application error Change this error message for exceptions thrown outside of an action (like in Dispatcher setups or broken Ruby code) in public/500.html" Now, before starting script/server I modiffied config/environment.rb and
2005 Apr 08
0
switch mod_ruby to fastcgi but still use eruby?
Hello there list- I have a question I hope someone can answer. I have a Debian server that currently has mod_ruby and eruby installed and working great for the last year or so. I also have one rails app working great on this box. My question is this: I want to switch to fastcgi so i can have more than one rails app, but there are already many scripts using eruby with no framework at all just
2009 May 24
1
is f.submit in a form_for newer than submit_tag?
some books or even the rails api uses form_for ... ... submit_tag ... end and i found that the Rails 2.3.2 Scaffold uses f.submit "Go" instead... and this is not in the rails api doc. Is this a new addition and is it suppose to replace submit_tag? -- Posted via http://www.ruby-forum.com/.
2009 May 26
1
how does form_for and validate_presence_of work hand in hand
when we have validate_presence_of :name in the model and then when we put in the create action that we re-render ''new'', then the form_for will populate the fields, and error_messages_for ''story'' will have the correct error message. this is really great, and and the same time, this looks like magic... i found that many books don''t explain how the magic
2006 Feb 20
7
Native erb lacks -%>, where is Rails'' erb?
Native ERB in ruby, and eruby, seem to lack the -%> feature for suppressing trailing newlines. Thus erb -n script gives errors. Where is Rails ERB so I can invoke it directly? Thank you Hugh
2007 Jul 23
1
readline (LoadError)
hi, i''m a noob in ror, today i bought a book to learn ror. i do everthing that stand''s in this book, and the shit does''t work! i use Aptana IDE with RadRails the problem is: Loading development environment. /usr/lib/ruby/1.8/irb/completion.rb:10:in `require'': No such file to load -- readline (LoadError) from /usr/lib/ruby/1.8/irb/completion.rb:10 from
2007 Jul 10
3
need to add XTHML class attribute, link_to's html options?
I need to add a class attribute to the elements generated by link_to for my CSS to style the links. How can I do that? <%= link_to "Artworks", :controller => "artwork", :action => "list" %> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk"
2007 Jun 13
2
Delete the fixtures on a functionnal test
Hi, Since couple a day, I block with the delete of my fixtures in my functionnals test. In my controller, I need test a redirect if there are no value. But i load my fixtures in start of my test and in a specific test I want delete all. Only in this method, not in other method. In API, I discover the method delete_existing_fixtures, who seem the good practice, but I can''t find how use
2007 Jul 06
3
assert_equal - problems returning value from controller
Hi, I have the following assert_equal that is returning false. @q seems to be returning niil, but is set in the controller, how can I get hold of this value in my tests? assert_equal ''derby'', @q Thanks Mark -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups
2007 Jan 23
1
assert_select issue
I''d like to do an assert_select where only ONE of the matching elements needs to match the :text. It seems counterintuitive to me to require them *all* to match, which precludes me from testing the existence of a particular tag (h1) with some particular text if other instances of the same tag exist. I know that I can narrow down the field by using more detailed selectors, but it sure
2007 Apr 03
4
Replacing ERB with Erubis
Hey guys, I''ve been hearing a lot about erubis: http://www.kuwata-lab.com/erubis/ Especially about how much faster it is than straight ERB. In their Ruby on Rails support docs: http://www.kuwata-lab.com/erubis/users-guide.05.html#topics-rails They state that with a few added lines to your environment.rb it will replace ERB completely. I''m wondering if anyone has done this in