slim-lang

    1熱度

    1回答

    我爲我的Rails應用程序使用slim-rails gem,並且在使用layouts/application.html.slim時遇到了一些麻煩。該文件是簡單的波紋管: html head title RailsProjetoBase = csrf_meta_tags = stylesheet_link_tag 'application', media: '

    -2熱度

    1回答

    我想一個表的誰我smart_listing寶石 未知創建的內容過濾,SmartListing也被稱爲smart_listing是一個Ruby寶石它提供一個工具,在您的Rails應用程序創建列表 我能使用分頁,但過濾器仍然沒有工作 Link to smart_listing documentation for Controls (filtering) documentation section 在文

    0熱度

    2回答

    我是一個紅寶石新手。我一直在使用Middleman和Slim來建立一個靜態網站。我想在我的佈局中創建條件註釋,只顯示特定圖像或包含基於活動頁面的某些JavaScript文件。 因此,像 if page title is "foo" render image of a cat else render image of a dog

    0熱度

    1回答

    當編寫一個苗條的模板,我不能讓一個等號(=)在輸出展現出來,比如當我寫 a.btn class=["btn-lg", "col-xs-2"] This works 我看到輸出 <a class="btn btn-lg col-xs-2">This works</a> 然而,當我寫 a.btn class=["btn-lg", "col-xs-2"] = 輸出不顯示等號 <a class

    0熱度

    1回答

    基本上,在我看來,rails控制檯中的哪些工作看起來不起作用 - 我有一個工作室模型,其中包含日期時間類型的「start_date」列。 我創建這種類型的對象,當我進入軌道控制檯 Workshop.find(<id>).start_date.day 返回特定的某一天預期(例如,在日期時間的情況下,「21」「星期五,2017年4月21日17:00:00 UTC +00:00' )。 但是,在我看

    0熱度

    1回答

    Rails 3.2 我繼承了使用SLIM的Rails應用程序。我想起牀的速度在身材苗條,但我有一個觀點的陳述中的一個小麻煩: = f.select :location_ids, locations, {}, { multiple: true} 這是一種形式,在那裏你可以從不同的地點選擇的一部分。 :locations_id將返回的數組 位置是包含位置,以從選擇(ⅰ知道它在代碼的計算的) {

    1熱度

    3回答

    渲染搭配修身/ Rails的降價: div.container div.row div.col-md-8.job_description markdown: = @listing.job_description 這只是呈現字符串 這是一個H1 H2 ## ### H3>這是一個報價* *你好再見foo (其中包含在實際的字符串)無換行符或任何

    0熱度

    1回答

    我有這個代碼寫在苗條。 = link_to collaborator.user = user_image_of collaborator.user.avatar, thumb: true, class: "ui avatar image carouselCollaboratorsImage" 我得到一個錯誤,在同一線路上同時,thumb: true和class: "ui~~~~"。我

    0熱度

    1回答

    後,我需要重定向到一個特定的項目在我的編輯頁面,我用重定向,但我不能添加#tab_id 這是我的源代碼: if @song.save flash[:notice] = I18n.t('message.success') #render action: 'edit' redirect_to edit_song_path(@song.id)#tablineT_18_5

    0熱度

    1回答

    我有https://foundation.zurb.com/sites/docs/v/5.5.3/components/topbar.html的html <nav class="top-bar" data-topbar role="navigation">。但我不知道這是如何轉變爲苗條。 nav class="top-bar" role="navigation" data-topbar 這會導致問