similar to: equivalent of "puts" in rhtml

Displaying 20 results from an estimated 600 matches similar to: "equivalent of "puts" in rhtml"

2013 Jun 04
1
exec failure doesn't abort whole puppet transaction
I have my puppet defined as (pseudo code) class A { exec { somethingA: } } class B { exec { somethinB: } } Class[''A''] -> Class[''B''] the exec{ somethingA: } is actually failed on my setup, I was expecting the whole puppet transaction would fail. To my surprise, class B still got executed, and puppet agent returned with code 2
2006 Apr 07
2
MSSQL activerecord uses bad syntax
Hi all, I''m trying to get rails up on mssql for a friend, does anyone have experience? We''re working on a Windows XP box with MSSQL 2000 (no service pak), and both rails (1.1) and MSSQL are on the same box. I''m running into a bug (I think) where activerecord is using this syntax: SELECT TOP 1 * FROM users WHERE (users.user = ''jbgnuumnbu'')
2006 Apr 03
2
HABTM migrations
Bad rails day for Matt- In a migration, for a habtm: create_table :teams_users do |t| t.column :team_id, :integer t.column :user_id, :integer end Ok, fine. In a controller (well really a migration script): @user.teams << Team.find( 3 ) And the SQL pumped at my server is: INSERT INTO teams_users (`team_id`, `id`, `user_id`) VALUES (3, 3, 34) Which
2006 Apr 03
5
Is old school STI broken? How would you do the same now?
So this new STI :through thing is still not clear to me. I have a project now where I''m using this: class List < ActiveRecord::Base belongs_to :user end class StaticList < List has_and_belongs_to_many :items end In the script/console: >> StaticList.create NameError: uninitialized constant StaticList What? ok, fine. So a List.create would be in
2006 Apr 03
4
STI Broken on 1.1
Yeah I''m getting major problems as well. I don''t know what the issue is but I''m thinking of going back to 1.0 I would really like to hear if you figure this out, kind of an important part of Rails for us. -Paul -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Jun 21
11
executive: "is rails secure?"
Yesterday, I was doing a dog-and-pony for the head of the company that I work for. He asked, "Is this (a rails application) secure?" I said, "It''s as secure as anything else on the web is," and proceeded to talk about how the data was protected, how we weren''t saving anything that''s worth protecting, and so on. I''d like to have a better
2006 Jun 05
1
Form Field
I''m trying to get the value of a form field (input type="text" id="name">) from a controller via the params hash, but this isn''t working. I thought params[:name] would return this. The textbox is not part of the model. Does anyone know how to do this?? Thanks! -- Posted via http://www.ruby-forum.com/.
2006 Apr 03
1
why ruby GC can take only 8 meg of memory????
Hi, As I understand, the GC of Ruby can take only max. 8 meg of memory. So I wonder if there is some reason behide this or it is simply a hardecode feature???? and if I want to increase the memeory, how should I do this??? Thanks you very much!!!! Saiho The mind is its own place, and in itself. Can make a Heaven of Hell, a Hell of Heaven. http://www.geocities.com/sayoyo/
2006 Apr 20
1
error on stpexec : ROR on Linux with SQLServer Connection
So I got my rails app to connect to the SQLServer via ODBC, and I can model/scaffold, yada yada.. but when I need to exec a stored proc using sql_server.rb I get undefined local variable or method `connection'' how can that be, if I can connect for everthing else? thanks -- Posted via http://www.ruby-forum.com/.
2006 Jan 10
6
print an instance variable?
Is there a way to print out an instance variable (@something) so you can see: 1: what it contains 2: how it''s mapped together ?? -- Posted via http://www.ruby-forum.com/.
2006 Jun 05
3
How to get dd mmm and yyyy from dd-mmm-yyyy
The input values could be something like this: 01-Dec-2006 01-December-2006 1-June-2006 Is there an easy to way to get the three variables populated dd, mmm and yyyy for any of the above input values? I tried to look at regex but couldn'' anything simple. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Jan 10
3
ROR setup problems with Suse + apache
hello, I am tying to run ROR on apache 2 with suse linux 9.3, and I do not succeed with it. I set rubby und rails and all scripts are running fine. my Document root : /srv/rails/demo/public I did not setup FastCGI because I could not run it with normal CGI jet. my Virtual Server runs on 192.168.0.111 ServerName rails DocumentRoot /srv/rails/demo/public <Directory
2006 Aug 18
2
printing out text in .rhtml files
Hi all, In php i can do something like this: <?php print ''hello''; print '' world''; ?> Is there an equivalent to print in eruby, or do I have to use multiple <%= %> lines? Thanks! Jack p.s. I tried posting this before, but I don''t see it. Sorry if this is a repeat. -- Posted via http://www.ruby-forum.com/.
2006 Apr 14
6
LoginGeneratorACLSystem Issue
Hello all, Again, thank you all in advance for any help here. I am trying to figure out how to show the role associated with a user, in a template. I am using the LoginGeneratorACLSystem along with the LoginGenerator. I can show the first name of the user by writing "<%= session[:user].first_name %>" but when I write "<%= session[:user].roles.name %>" it spits
2006 Apr 03
3
SaltedHashLoginGenerator Verification Trouble
Hello all, Any help with this one is MUCH appreciated. I am running Ruby 1.84 and Rails 1.1.0 on Win32 with a local SMTP server. I can successfully send a signup confirmation email with a confirmation link, but when I click on the link, it says that I am logged in, but it never verifies the account. This is the link provided by the system:
2006 Apr 03
3
Retrieving a record using created_by
Hello, Thank you all in advance for your help with this. Environment: Windows XP Pro (Development only) Ruby 1.84 Rails 1.1.0 SaltedHashLoginGenerator Plugins: file_column, userstamp I have a user table per the salted_hash_login generator. I have an orders table that has a column named created_by that is updated by the userstamp plugin. I am trying to retrieve all of the orders for a single
2006 May 01
6
Two developers, one on unix and one on windows
Hello all, An interesting problem, I am developing on Windows, another developer is using Unix, and our app and svn repository are running on a Linux box. We need an easy way to not keep breaking our app and each others development environs when we check in the code. The piece in question is the dispatch.fcgi. The path to ruby is (obviously) different in Windows and Unix. Has anyone run into
2006 Jun 19
2
Auth_generator and domains
Hello all, Thank you for your help in advance.I am working with the auth_generator and see that the "roles" are domains. I am unsure how to add domains to the system and then control who is in what domain. Any help with this or an explanation of how domains work is greatly appreciated. Thank you in advance. Sincerely, Robert Dempsey -- Posted via http://www.ruby-forum.com/.
2006 Aug 08
8
executing external code
I''m trying to run some non-ruby code in my rails app and i''m not sure how to do this. The code i have would take a really long time to port to ruby and so i''d rather run it as is (its php). What i would like to have happen is that the code can be invoked as an ajax call. And just return some data in JSON. I keep running into a routing failure by actioncontroller and
2006 Apr 14
7
SHA2 Issues
Hello all, Thank you in advance for your help with this. I am trying to implement the user authentication method from Ruby Recipes which calls for the use of SHA 2. Here is the code for the password: def password=(pass) salt = [Array.new(6){rand(256).chr}.join].pack("m").chomp self.password_salt, self.password_hash = salt, Digest::SHA256.hexdigest(pass + salt) end I open