Problems with rails scaffolding and installing mongrel

I'm not sure if this is necessarily the right forum for this.
When I build a new rails app (entitled 'tests') using scaffolding, the index page looks fine but when I click on 'new test' I get this:
NoMethodError in Tests#new
Showing app/views/tests/new.html.erb where line #3 raised:
undefined method `^' for "8":String
Extracted source (around line #3):
1: <h1>New test</h1>
2:
3: <% form_for(@test) do |f| %>
4:   <%= f.error_messages %>
5:
6:   <p>
RAILS_ROOT: /home/matt/tests
Application Trace | Framework Trace | Full Trace
/usr/lib/ruby/gems/1.9.1/gems/activesupport-2.3.4/lib/active_support/message_verifier.rb:46:in `block in secure_compare'
/usr/lib/ruby/gems/1.9.1/gems/activesupport-2.3.4/lib/active_support/message_verifier.rb:45:in `each'
/usr/lib/ruby/gems/1.9.1/gems/activesupport-2.3.4/lib/active_support/message_verifier.rb:45:in `secure_compare'
/usr/lib/ruby/gems/1.9.1/gems/activesupport-2.3.4/lib/active_support/message_verifier.rb:28:in `verify'
/usr/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/session/cookie_store.rb:156:in `unmarshal'
/usr/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/session/cookie_store.rb:145:in `load_session'
/usr/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/session/abstract_store.rb:62:in `block in load!'
/usr/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/session/abstract_store.rb:70:in `stale_session_check!'
/usr/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/session/abstract_store.rb:61:in `load!'
/usr/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/session/abstract_store.rb:28:in `[]'
/usr/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_controller/request_forgery_protection.rb:102:in `form_authenticity_token'
(eval):2:in `form_authenticity_token'
/home/matt/tests/app/views/tests/new.html.erb:3:in `_run_erb_app47views47tests47new46html46erb'
/home/matt/tests/app/controllers/tests_controller.rb:29:in `new'
And when I try to install mongrel as root or regular user, I get this:
Building native extensions.  This could take a while...
ERROR:  Error installing mongrel:
    ERROR: Failed to build gem native extension.
/usr/bin/ruby extconf.rb
checking for main() in -lc... yes
creating Makefile
make
gcc -I. -I/usr/include/ruby-1.9.1/i686-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -D_FILE_OFFSET_BITS=64  -fPIC -march=i686 -mtune=generic -O2 -pipe -O2 -g -Wall -Wno-parentheses  -fPIC  -o http11.o -c http11.c
http11.c: In function 'http_field':
http11.c:77: error: 'struct RString' has no member named 'ptr'
http11.c:77: error: 'struct RString' has no member named 'len'
http11.c:77: warning: left-hand operand of comma expression has no effect
http11.c: In function 'header_done':
http11.c:172: error: 'struct RString' has no member named 'ptr'
http11.c:172: error: 'struct RString' has no member named 'ptr'
http11.c:172: error: 'struct RString' has no member named 'ptr'
http11.c:174: error: 'struct RString' has no member named 'ptr'
http11.c:176: error: 'struct RString' has no member named 'ptr'
http11.c:177: error: 'struct RString' has no member named 'len'
http11.c: In function 'HttpParser_execute':
http11.c:298: error: 'struct RString' has no member named 'ptr'
http11.c:299: error: 'struct RString' has no member named 'len'
make: *** [http11.o] Error 1
Gem files will remain installed in /usr/lib/ruby/gems/1.9.1/gems/mongrel-1.1.5 for inspection.
Results logged to /usr/lib/ruby/gems/1.9.1/gems/mongrel-1.1.5/ext/http11/gem_make.out
Please help.

Hi!
I don't know if you've yet found a solution to it, but afaik this problem is caused by the ruby 1.9 version, because they don't use certain arrays anymore to compile.
You gotta wait for mongrel 1.1.6 or use webrick... oooooooor get ruby 1.8. That might solve the problem, but I haven't tried that yet.
If on the other hand it is related to gcc and make, then you're doomed and most definitely have to wait for a newer gem version. Uh yay... I've had this fun with the mysql gem last weekend... :>
Anyways, would be cool to hear, what you have found out...

Similar Messages

  • Problem with serial number and installing PSE 12

    I purchased Adobe PSE 12 yesterday and the purchase went through. But I never received a confoirmation email from Adobe. Now, when I try to enter the serial number to install, I'm told there is a problem with the serial number and I must contact customer support. Can't get through to customer support though. What should I do? I desperately need to get this program installed. Thanks.

    Hi 2Summers,
    Please provide me the serial number and I will check it for you.
    Send me aprivate message. Do not post it here.
    If you dont know how to do that refer : http://forums.adobe.com/thread/1184148

  • Problems with File Information and installing Adobe Reader

    Dear Forum,
    monthes ago I updated 10.3 to 10.4 now I have 10.4.6. Since the update I have been unable to access file Information (ie, as from key short cut: apple+I). Now I am trying to install Acrobat Reader and I cannot succeed.
    Any of you can suggest me what is wrong and what should I do? Possibly without having to reinstall MacOS again?
    Thank for help!
    Marco

    Your suggestion of creating a new account was useful for installing acrobat Reader.
    If I understand correctly, you were able to install Acrobat Reader while logged into the new account. If so, then the problem's within the old account. Preferential Treatment is at http://homepage.mac.com/jonn8/as/html/pt.html.
    my access to the update COMBO is problematic
    If you can connect to the internet, get the COMBO update from http://www.apple.com/support/downloads/macosx1046comboforppc.html; it has nothing to do with the installation disk.

  • Problems with uninstalling cs3 and installing cs3 again

    Hi all,
    I hope someone can help me with this. I have uninstalled cs3 because the
    computer prompts me that my activation has stopped working. So as I began to
    install my cs3 design premium, the computer prompts me to insert my cd for
    my design premium. That is strage as I have already insertted my cd. So as I
    click on OK several times(they keep on prmpting me to insert my cd again.
    After I clicked on (most probably 20 ~ 30 times), the installer said I have
    not successfully installed any of the applications I have selected. Why so?
    I suspect I have not uninstalled cleanly. I have uninstalled from the
    add/remove components from the windows. Is there anyway to solve this
    problem? What am I going to do now??
    Disappointed.

    You probably need to uninstall again .. reboot .. and then follow the <br />instructions on this page.  Download and use the CS3 Clean Up Script for <br />your OS as instructed.<br /><br />http://www.adobe.com/support/contact/cs3clean.html<br /><br />Then reboot one more time and reinstall.<br /><br /><br />-- <br />Nancy Gill<br />Adobe Community Expert<br />Author:  Dreamweaver 8 e-book for the DMX Zone<br />Co-Author:  Dreamweaver MX: Instant Troubleshooter (August, 2003)<br />Technical Editor:  Dreamweaver CS3: The Missing Manual,<br /> DMX 2004: The Complete Reference,  DMX 2004: A Beginner's Guide<br /> Mastering Macromedia Contribute<br />Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP Web Development<br /><br /><br /><[email protected]> wrote in message <br />news:[email protected]..<br />> Hi all,<br />><br />> I hope someone can help me with this. I have uninstalled cs3 because the<br />> computer prompts me that my activation has stopped working. So as I began <br />> to<br />> install my cs3 design premium, the computer prompts me to insert my cd for<br />> my design premium. That is strage as I have already insertted my cd. So as <br />> I<br />> click on OK several times(they keep on prmpting me to insert my cd again.<br />> After I clicked on (most probably 20 ~ 30 times), the installer said I <br />> have<br />> not successfully installed any of the applications I have selected. Why <br />> so?<br />><br />> I suspect I have not uninstalled cleanly. I have uninstalled from the<br />> add/remove components from the windows. Is there anyway to solve this<br />> problem? What am I going to do now??<br />><br />> Disappointed.<br />><br />><br />>

  • Having problems with ipad mini and Siri. Works sporadically, will work once and then the second time not. Worked all the time with the original Mailbox app. Then started doing the same thing when I installed the new update so wondering if it is software?

    Having problems with ipad mini and Siri. Works sporadically, will work once and then the second time not. Worked all the time with the original Mailbox app. Then started doing the same thing when I installed the new update so wondering if it is software?

    Hi,
    I have the check box on a second Partition  but not on the Time Machine one
    I forget what I did now to get this called "Recovery HD"
    For the rest try https://discussions.apple.com/docs/DOC-4055  User Tip that links to Pondini's work on Time Machine.
    10:17 pm      Friday; May 2, 2014
    ​  iMac 2.5Ghz i5 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • I installed Lion and now seem to have problems with Microsoft Silverlight and other plug ins and applications.  I haven't ever used time machine to back up (my bad I know).  Is there a way to go back to snow leopard with messing up all my files and my set

    I installed Lion and now seem to have problems with Microsoft Silverlight and other plug ins and applications.  I haven't ever used time machine to back up (my bad I know).  Is there a way to go back to snow leopard with messing up all my files and my set?

    Are you using the latest version of Silverkeeper? - v.2.0.2 is stated to be compatible with Snow Leopard.
    http://www.lacie.com/silverkeeper/
    If it's messing things up you could try asking LaCie Support for assistance.

  • HT204490 OS X Yosemite v10.10.3 Update - I had problems with my iMac after installing the previous update and I removed that update.  Have there been problems associated with this update ?

    OS X Yosemite v10.10.3 Update - I had problems with my iMac after installing the previous update and I removed that update.  Have there been problems associated with this update ?

    I've been using it on all of my computer without any problems. Remember you won't see any positive comments here. Everyone here is complaining about a problem. If you want a good experience with any upgrade or update first make a backup from which you can boot the computer. If you are installing an update, like 10.10.3 for example, always download and install the Combo Updater - OS X Yosemite 10.10.3 Combo Update. Before you install any update or upgrade over an existing system you should do this:Repair the Hard Drive and Permissions:
    Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Repair
    When the recovery menu appears select Disk Utility and press the Continue button. After Disk Utility loads select the Macintosh HD entry from the the left side list.  Click on the First Aid tab, then click on the Repair Disk button. If Disk Utility reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit Disk Utility and return to the main menu. Select Restart from the Apple menu.

  • Problems with Mail, Safari and iTunes after updating to 10.5.6

    Hi all,
    after installing 10.5.6 I have problems with Mail, Safari and iTunes.
    The time to open mails, websides and iTunes store is increasing dramatically since the update. If I open a webside parallel with Safari and Firefox, Safari needs minimum 15 times longer to open the complete side. Mails containing HTML-code also needs a long time to be opened. Tha same Problem with iTunes store. Connecting to the Store costs at least 30 - 40 seconds. And unfortunately for every iTunes store side I open. Its terrible
    Any idea or workaroung to solve that problem?
    Regards
    Michael

    First, run Disk Utility and repair permissions and then restart.
    I installed the 10.5.6 Combo update. Sometimes things get "lost in the translation" when you use Software Update depending on your installation. Perhaps you can download 10.5.6 Combo from the website and install it from your desktop.

  • Problem with java, ASCII and Linux

    Hi Friends,
    I has a Linux RedHat 9.0 with a jre1.5.0_04 (rpm package of Sun).
    I has a problem with ASCII , for example :
    import java.io.*;
    public class HolaMundo
    public static void main (String[] args)
    System.out.println("Hol� M�ndo");
    this programs runs ok on my windows jdk so it prints "Hol� M�ndo", but when i run the same HolaMundo.class program on my linux redhat it prints "Hol�� M��ndo"
    I think the problem is with the ASCII table that uses the linux version of jre, but i dont know how to solve this problem. I need a Spanish-European ASCII table on my application but i think it is working with a US-ASCII table.
    Then i has installed a kaffe 1.0 (rpm) java machie on this linux and this solve the problem but i has another problems of compatibility with this old version of java kaffe.
    Do you know whats happening?
    Thanks in advance.

    The problem doesn't have to do anything with Java or Linux as far as i can see. It's more likely a problem with Windows XP and IE. Be assured that normally downloading the Linux JDK in windows is not a problem.

  • Is there a problem with the itunes and quick time download pages or is it my internet.

    Is there a problem with the itunes and quicktime download pages or is it just my internet.

    Some more developments ... the issue appears to be browser-specific. I can't see the download controls at the moment in either IE 8 (I'll get your message) or Safari for Windows 5.0.5 (I'll just get the blank box). But I can see the download controls in Firefox 4 and Chrome (whatever version I have of that).
    So it might be worth installing Firefox and seeing if you can get the downloads via that:
    http://www.mozilla.com/en-US/firefox/new/

  • Hi anyone having a problem with windows 7 and itunes

    Hi has anyone had a problem with windows 7n and Itunes...My Itunes was working now wont open says files missing reinstall...which I have done several times also other programs that were working now have error message your side by side configuration isnt correct any ideas!!!

    Yes, I am also having trouble with my windows 7n.  I tried to install the download but it didn't have 32 bit for my computer and I don't think it will help me see my phone on my external devices. I can't transfer my photos. Any help would be appreciated.

  • Problems with captivate 8 and windows 8

    I´m using captivate 8 and windows 8, and I am having problems with the visualization and publication of my projects. For visualization, there is a message of an error with syntax of the files ou directory, and nothing happens. For publication, I can´t see the project published in the browser. It opens only a text file, with the codes. Is there anyone thar can help me with that?

    Acrobat 8 is not certified for Win7, particularly the x64 version. If you got the installation to go, the first step is to update AA8 to at least AA8.2. The x64 with XP required at least AA8.2 and I suspect that has not changed. I would suggest updating to the latest, either from the help menu (until no more updates are available) or by downloading the updates from the adobe.com>downloads page. For the latter, download ALL updates after your current version and install them in ORDER. They are not cummulative in most cases. You only need to reboot after the final update. The updates may get you going. If not, you may simply have to upgrade to AA9 or search for what others have been able to do in your situation.

  • When i try to update my itunes on my pc i keep getting the messaage that there was a problem with the installer and it could not finish. how do i fix this? i`ve tried to download 3 times already.

    when i try to update my itunes on my pc i keep getting the messaage that there was a problem with the installer and it could not finish. how do i fix this? i`ve tried to download 3 times already.

    Hi
    I've got a similar problem.  iTunes v10.2 worked fine, but when I tried to update it to 10.5 I got a 'Bonjour' error.  I eventually solved that but I still couldn't upgrade to 10.5, so I deleted every single Apple, Quicktime, iTunes, etc file on my PC using Revo Unistaller (because the normal Windows Add/Delete programs wouldn't work) but now, when I install the latest iTunes version from scratch (on XP SP3), it says: "the installer encountered errors before it could be configured.... your system has not been modified" 
    Any ideas?
    Rick

  • Boot Camp problems with Windows 7, and a new Macbook Pro

    When I try to install Windows 7, when the process is almost complete and Windows is finalizing all settings, the system reboots then gets stuck at the white/gray bootscreen, and then tries to boot from disk, only to repeat the bootscreen cycle indefinitely. How do I fix this? Thank you very much.

    My MAC BOOK is 13 inch, first generation of unibody that I bought when it first came out last November, 2009. It seems that the latest boot camp 3.1 does not support windows7 64 bits on my mac book model. I followed Apple instruction to upgrade boot camp 3.0 when running XP 32 bits. And I then upgrade my XP 32 bits to 64 bit Windows 7. The upgrade/installation was successful but I encountered a lot of problems with the mouse and sound.
    1. No sound with my new Windows 7 64 bits.
    2. I managed to make Windows 7 64 bit recognize my apple mighty mouse. But the mouse does not funtion normal as expected. It does not work with swiping and scrolling.
    3. I could not re-install boot camp 3.0 from windows.old nor from the Mac OS X installation disk. When I tried to run setup.exe from the MAC OS X snow leopard, I got the error "Boot camp x64 is unsupported for this model"
    I am really disappointed that boot camp 3.1 is not universally supported for all mac book or mac book pro.
    I need help to re-install boot camp for my Windows 7? I bought the upgrade through education upgrade program and I selected to get 64 bit version so I do not want to rollback the installation to 32 bit.
    Please help.

  • I have a problem with Apple store when installing large application: The system crashes. Any suggestion?

    I have a problem with Apple store when installing large application (example xCode): The system crashes.
    It begun with 10.8 usualy with few tries it work but with 4.6 no succes.
    Any suggestion?

    If you have more than one user account, you must be logged in as an administrator to carry out these instructions.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Select the most recent panic log under System Diagnostic Reports. Post the entire contents — the text, please, not a screenshot. In the interest of privacy, I suggest you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header and body of the report, if it’s present (it may not be.) Please don't post shutdownStall, spin, or hang reports.

Maybe you are looking for

  • Macbook won't boot. Has my hard drive failed?

    I installed Firefox because a company I was buying something from said their checkout didn't work with Safari. Then about 2 minutes after using Firefox the whole computer froze with the spinning disk. After a while I powered down by holding down the

  • HT1349 I updated my IGO primo, and now it doesn't work at all. what can you advise me

    I updated my IGO primo, and now it doesn't work at all. what can you advice me now?

  • Can you set a password to prevent access to settings

    Hi I have an iphone and ipad and back up all devices to icloud. I have purchased an ipad mini for both of my children and because they are young are using my apple id and password to download apps although I put the password in each time. I have turn

  • Content Server - DB and OS compatibility

    Hi Everybody, Can anyone tell me the DB's(databases) and OS(Operating systems) for which content,cache server can be installed on ? Am aware that its compatible with Windows 2003 and MaxDB, but need for other DB's and OS. Thank you.

  • Select Checked Out Files

    In the Files panel, if I use the option "Select Checked Out Files", Dreamweaver will always crash (I just tried out and am waiting for DW to fall apart). Does anyone know how to overcome this (yes, without ditching DW)?