Erb Syntax Programming Web Development by danielgeorgy Hi, I am a very beginner on Ruby and related stuff, Could you please tell me what a tag like this "<%!" means in the following code. Also, I would really appreciate if you can give me some ref to erb templates. <%! if filmstrip_image_path.blank? %> Also what does this '?' do in the above code Thanks, Georgy Json vs html.erb in ruby Programming Web Development by rchawdhari Hi all, My project is on ruby on rails. I have one of ruby api returns json.jbuilder But I want that my api should not return json , it will display html.erb file Is anybody can help me??? Check if webpage exists Programming Web Development by sid78669 …, "<", $sRB) - 4; if(($eRB-$sRB) > 0) $wValue = substr($value, $sRB, $eRB-$sRB); else $wValue = substr($value, $sRB, strlen…-1); $sRB = strpos($value, ">"); $eRB = strrpos($value, "<"); if(($eRB-$sRB) > 0) $wValue = substr($value, $sRB… Sinatra - Web Applications using Ruby Programming Web Development by Mrewan79 … item to an element of a document generated by another .erb (inside itemList) 2) sending it back via 'POST'… itemcontroller.rb post '/addItem' do erb :itemlist #Template that will store the value in a <…post '/backtodatabase' do #? Grab value off element of .erb send it back and store in a table end Getting the dimensions of an image element Programming Web Development by SWEngineer I have a view file, "show.html.erb", and a Javascript file, "coordinate.js". In … find the scripts of the two files: [B]* show.html.erb[/B] [code] <%= javascript_include_tag "coordinate" %> <canvas… Re: Getting the dimensions of an image element Programming Web Development by SWEngineer … should I place instead of ????? in the view (show.html.erb)? [B]*Model:[/B] [code] class Dicom < ActiveRecord::Base has_attached_file… Simple app - problems w/ routes Programming Web Development by clem_c_rock …/say/hello:[/url] ActionView::MissingTemplate (Missing template say/hello.html.erb in view path /home/c73mr0ck/railsapp/app/views): /usr/local… Forms fields pre-populating w/ first record's values Programming Web Development by clem_c_rock … When I call the create_user method, the corresponding create_user.html.erb form is displaying the first record's data from the… file trouble Programming Software Development by smeghead007 … and then display if its found or not. ** ** ** ** Programmer : Christopher Erb ** ** Date Created : 02/26/10 ** ** Date last revised: ************************************************************************************/ #include <… RoR: Updating a form within another form Programming Web Development by rtk1865 Below is the ERB for a new 'To-do' view. Duedate is another table … File calculator Programming Software Development by The 42nd … b.txt: b1 erb1 b2 erb2 . . . bn erbn era and erb are belonging errors in measurement for a and b (in… ActionView::Template::Error cannot connect to active admin? the Programming Web Development by visumdesignz ….4.3/app/views/active_admin/devise/se ssions/new.html.erb within layouts/active_admin_logged_out (693.0ms) Completed 500 Internal Server Error… JQuery-File-Upload Button dependencies Programming Web Development by akvarel1 … to fit my needs. I am modelling your index.html.erb to fit my needs. I want to get rid of… Custom Tags in Ruby Programming Web Development by rohit.khurana I am trying to use custom tags in ruby..i am a newbie to ruby.I hav developed in java before and i am myself a web developer.I have made custom tags for JSP pages but i m not sure wether we can form custom tags in .erb files also..??? Re: Custom Tags in Ruby Programming Web Development by L7Sqr Can you give an example where ERB fails and you need something more flexible? HTML and CSS formatting problem Digital Media UI / UX Design by Epixam … I doing wrong? The following is an example. (index.html.erb) <div id="container"> <div id… Server / Core Dump error? Programming Databases by skullscript … p2CS YX!`C c$2 2B@H@ $@ $ptH E@@#I eRB@ $ @!@" MBCR " @+ r uS 0&uS (!uS 7… Re: Rails 3.2.2 getting a 404 on stylesheets and js assets after deployment wit Programming Web Development by PrometheanSin … MainController#index as HTML Rendered shared/_login_form.html.erb (0.4ms) Rendered shared/_footer.html.erb (0.4ms) Rendered shared/_details_form.html… MainController#index as HTML Rendered shared/_login_form.html.erb (1.2ms) Rendered shared/_footer.html.erb (1.1ms) Rendered shared/_details_form.html… Re: how to populate select box depending upon the selection of the radio button on rails Programming Web Development by imon214 … new here on rubyonrails. here are my radio_buttons in `_form.erb` <%= f.radio_button :patch_type, 'unix' %> <%= f.label :patch_type_unix…; f} %> </div> then in the `_other_patch.html.erb` <h2>Corresponding Patches</h2> <table… Re: Newbie question about embedding ruby in html Programming Web Development by blocblue Hi, Assuming your html file has an .rhtml, .erb or basically an extension that will ensure it is run through the ruby parser, then you can do this: [CODE=ruby] <div id="bubble" class="bubble" style="background: <%= event.icon %>"> </div> [/CODE] R. Re: Suggestions on best approach on project Programming Web Development by adishardis …;Utf"; $nycknamnDIV1[17]="Taj"; $nycknamnDIV1[18]="Erb"; $table1 = "<div id=\"container\">… Re: Erb Syntax Programming Web Development by Taywin I don't remember that it has `<%!` as the syntax. However, it could be interpreted as follows: <% ! if filmstrip_image_path.blank? %> or <%!if filmstrip_image_path.blank?%> So, what it means is ... <% not if filestrip_image_path.blank? %> Now, the blank? is a method call for the variable class. In this case, … Jquery UI datepicker implementation in erb form in rails Programming Web Development by orange88 QUESTION: My need is to include a specific datepicker for EACH form when a specific button is clicked. Im not sure whether what im doing below in the jquery portion of the code for the datepicker is correct? Can someone please guide me with this? Thanks DETAILS: I am currently using a hidden form(hidden using css ===> display: none) for user … Re: Jquery UI datepicker implementation in erb form in rails Programming Web Development by LastMitch >QUESTION: My need is to include a specific datepicker for EACH form when a specific button is clicked. Im not sure whether what im doing below in the jquery portion of the code for the datepicker is correct? Can someone please guide me with this? Thanks Read this: http://api.jqueryui.com/datepicker/ There are code that you can used. I assume… Re: Check if webpage exists Programming Web Development by sid78669 I solved this myself. Was able to do some serious google and found the following code at: [URL="http://php.assistprogramming.com/check-website-status-using-php-and-curl-library.html"]http://php.assistprogramming.com/check-website-status-using-php-and-curl-library.html[/URL] [CODE=PHP] function Visit($url) { $agent = "Mozilla… Re: Sinatra - Web Applications using Ruby Programming Web Development by cereal Hi, you have to define an HTML form, for some examples see: * https://learnrubythehardway.org/book/ex51.html * https://github.com/sinatra/sinatra/blob/master/examples/chat.rb Re: Simple app - problems w/ routes Programming Web Development by clem_c_rock Now after a bit of tech support I now get this when I go to: [url]http://erichermann.com/say/hello[/url] Code: [code] Expected /home/c73mr0ck/railsapp/app/controllers/say_controller.rb to define SayController /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:249:in `load_missing_constant' /usr/local/lib/ruby/… Re: Forms fields pre-populating w/ first record's values Programming Web Development by pty In your controller do you have [code=ruby] @user = User.find(:first) [/code] or something similar? Could you post your controller code? Re: Forms fields pre-populating w/ first record's values Programming Web Development by clem_c_rock Problem solved: all I had to do was to add Address.new in the controller. Newbies Re: file trouble Programming Software Development by WaltP Would you like to help pinpoint where the problem is a little closer than somewhere in 200 lines of code? And have you ever heard of periods? They are those little dots that end sentences. They are used to help others understand the written word so they don't have to decipher run-on sentences.