similar to: SyntaxError in Posts#index ?

Displaying 20 results from an estimated 3000 matches similar to: "SyntaxError in Posts#index ?"

2012 Nov 01
2
SyntaxError in Posts#index
getting this error compile error /Users/bradwrage/webapps/blog/app/views/posts/index.html.erb:5: syntax error, unexpected ''='' ...w Goal", new_post_path, class="btn btn-success" );@output_bu... ^ /Users/bradwrage/webapps/blog/app/views/posts/index.html.erb:7: syntax error, unexpected kDO_BLOCK, expecting kEND ''); @posts.each
2012 Oct 31
5
css background not showing
Hi all, for some reason adding the following is doing nothing... .post.hover { background: FAFAFA; I''ve got this in my posts.js coffee file $ -> $(''.post'').hover (event) -> $(this).toggleClass("hover") and my index is <% @posts.each do |post| %> <div class="post"> <strong><%= post.title %></strong>
2012 Sep 23
6
Missing template projects/index, application/index ?
Getting this issue...even though I have my views there in both the projects and application. Also getting a routes issue "No route matches [GET] "/projects" when going to projects when I have root :to => "projects#index" defined in my routes file. Any idea? 1) Creating Projects can create a project Failure/Error: visit ''/''
2009 Jul 26
2
How knows my paths in link_to? If I do not defined.
Hello, It´s my first post here. :) I´l following the guide of Ruby, but I need to know how the Ruby knows my path to other pages if I did not define anything, like this: app/views/posts/index.html.erb: <td><%= link_to ''Show'', post %></td> <td><%= link_to ''Edit'', edit_post_path(post) %></td> Other
2011 Dec 23
1
/gems/ZenTest-4.6.2/lib/autotest.rb:315:in `load': /Users/jayparteek/.autotest:7: invalid multibyte char (US-ASCII) (SyntaxError)
I am using latest version for rspec-rails, ZenTest. I am getting following error, when ever I try to run autotest. Please help -head at mhart6/gems/ZenTest-4.6.2/lib/autotest.rb:315:in `load'': /Users/ jayparteek/.autotest:7: invalid multibyte char (US-ASCII) (SyntaxError)
2011 Mar 07
1
has_one :dependent => :destroy error (in `configure_dependency_for_has_one': compile error (SyntaxError))
Hi I''m getting the following error : /Users/nikosd/.rvm/rubies/ree-1.8.7-2011.02/bin/ruby -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /Users/nikosd/.rvm/gems/ree-1.8.7-2011.02@.../bin/rake test Testing started at 12:00 PM ... (in /Users/nikosd/Work/.../.../...)
2010 Jul 07
4
Haml ... ending a line with a | (vertical bar)
I don''t know if HAML questions are appropriate here ... but here goes. How does on end line to be rendered with a vertical bar (|) ? The vertical bar is a line continuation, aparently. Doing \| cause the vertical bar to be emitted ... as well as the backslash. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups
2006 Mar 11
4
Live search in Rails
Hi i''ve been trying to implement live search on rails but Im having trouble Im using a tutorial at: http://www.joestelmach.com/blog/live_search_with_ruby_on_rails But im getting a syntaxerror on line 1 ''1: <% if @items && @items.length > 0% >'' I cant fathom what im doing wrong, is that line calling a column in my database called items?
2008 Jan 18
8
link_to problem
hi @ all I create a new archiv.html.erb and a archiv method in the controller. Now, I would like to link from index.html.erb to archiv.html.erb. I tried to use <%= link_to ''archive'', archiv_xxx_path %> but it doesn''t run. It appears a error message "SyntaxError in xxx#index". Does anyone know, how I can enhance this problem? thanks a lot... -- Posted
2006 Jan 16
5
A function that return a link_to, Possible ?
Hello, I try this : in application_helper.rb ----------------------- def lnk bla return link_to bla, { :controller => bli , :action => "blo" , :id => "blu" } end in file.rhtml ----------- <%= lnk "yo!" %> This return an error. There is a way to do this or something similar, or this is completly impossible ? Thanks
2007 May 04
2
Sieve not recognizing keywords
First, I've been lurking and using dovecot for a few years now and I've always liked it, great piece of software! :) I've finally decided to clean up my act here and get virutal users and get postfix (2.3), dovecot (1.0.0) and deliver to play nice, using postfixadmin. I have it 99% there, but one thing is left: When I receive mails, deliver finds my virtual home dir and then tries
2005 Oct 17
3
POP Question
After upgrading to Alpha 4 I have two people complaining about a POP problem. Aparently they are getting their email sent to them over and over. They have it set to "leave messages on server" but apparently whatever keeps track of that is broken. So - how is it determined with POP what is new and what is read?
2011 May 19
0
Unable to find the image path via file system using the paperclip plugin through the get method
Hello all, with great difficulty , I guess I have finally been able to find the appropriate git commit of paperclip which would suit my project''s config which is Ruby 1.8.7 and rails 2.0.2. I am trying to implement a POC before I integrate paperclip in my project. The POC is basically implementing each post with an appropriate image beside it. It seems to pretty much work, its just
2007 Sep 24
2
Unknown dict module: db
Using dovecot-1.1beta1 I get "Unknown dict module: db" when starting up dovecot. In dovecot.conf I've got the "expire_dict = db:/var/lib/dovecot/expire.db" statement in the plugin{} section. Aparently required when the "expire" plugin is enabled. dovecot is built with "--with-db" and db-devel is present at compile time. Any ideas anyone? Cheers /Lars
2013 Jan 14
3
How to fit a linear model to data by minimizing the mean absolute percent error?
Hi All, I wonder if you can help me with an aparently simple task.  I have been searching examples for this without any luck: #Assume x<-1:10  #x ranges from 1 to 10. y<-x*runif(10)+ 1.5*x  #y is a linear function of x with some error. Add uniform error that is scaled to be larger as x values also become larger #error is proportional to x size, this should cause heterocedasticity. #I
2010 Nov 04
3
newbie: "Is xend running?"
hello all, it''s my first time ever with xen (or even virtualization in general). I installed Xen 3.2 on top of a Debian Lenny kernel 2.6.26-2-686 via apt-get. Boot options are: title Xen 3.2-1-i386 / Debian GNU/Linux, kernel 2.6.26-2-xen-686 root (hd0,0) kernel /xen-3.2-1-i386.gz dom0_mem=512000 module /vmlinuz-2.6.26-2-xen-686 root=/dev/mapper/athena-root ro console=tty0 module
2003 Feb 20
2
Samba-LDAP too imature for production?
2.2.7a It seems that samba-ldap is still to immature for any kind of production environment. The provided Perl scripts simply do not work with the 'add user script' setting or if they do, then there is an an undocumented bug, issue, etc. The scripts work fine from the command line but aparently samba won't execute them properly. Since I cannot expect my users to understand
2003 Oct 31
3
Problems with help.start()
Hello there, I've just installed R for Windows 1.8.0 and I'm experiencing problems with help.start(). It opens the help page as it supposed to do, then I go to "Search Engine & Keywords", but when I click anything there, it returns me a (aparently) JavaScript error, something like "The object does not support this method or property". The Search Engine doesn't
2013 Mar 15
5
link_to should have its body and url arguments reversed
I think the link_to helper method is quite confusing with its arguments order: link_to body, url link_to "Click me", @person Why is it thay way round? I want to make a "link to [the] person", so I would expect the order to be: link_to @person, "Click me" It reads much more natural. You don''t "link to [the] body", you "link to
2014 Dec 31
2
Postfix and Dovecot SASL - wiki update
I wanted to mention I updated the Postfix and Dovecot SASL wiki entry yesterday. http://wiki2.dovecot.org/HowTo/PostfixAndDovecotSASL The entry: submission inet n - - - - smtpd was incorrect. It should be: submission inet n - n - - smtpd By specifying n for chroot, it ensures that DNS lookups can occur. Otherwise, if you are using reject_unknown_recipient_domain the following error will