Comments (10)
Yeah, we used to have those fields as multiple flat lines (instead of basic input visuals) but saw the possibility of it becoming too confusing, especially when there are underlines dividing the headers from form content. I think we need to spend a little time back in photoshop to give the flow a fresh work through.
from askthem.
Looking at doing this for all stages of the questions flow. I'll probably copy the same layout for signing up. In order to provide greater focus on the tasks ahead of the user, I removed everything the user wouldn't need if they decided to ask a question (or signup/sign in). Interested in your thoughts on this @walter.
from askthem.
To make this layout possible, @walter, I think I'll need to create a new layout template. I'm not sure how those templates are properly called, I thought it was a routes.rb thing but it appears to be void of anything layout related. Any suggestions?
from askthem.
@kidfribble app/views/layouts/application.html.erb is the site wide default layout.
You can use a different layout specifically in a controller... however in this case, I might just alter app/views/questions/new.html.erb as all the partials are surrounded by it.
from askthem.
In order to use the same template I would need to have a body class or something to hide all the extra stuff I don't need, or just make a new template for this case, which I think is right. As it stands now (working inside of app/views/questions/new.html.erb) I can only edit what's in the white block: http://db.tt/juf0NOjg
from askthem.
Sorry, having a bit of trouble remembering how Ruby controllers link to layouts! :(
I assume we'd put something like "layout: layout_file_name" in here somewhere:
def new
layout: file_name
#all other def stuffs
end
from askthem.
Out at breakfast at the moment, but you should be able to find it in here:
http://guides.rubyonrails.org/layouts_and_rendering.html
On Jul 26, 2013, at 8:51 AM, Steve Trevathan [email protected] wrote:
Sorry, having a bit of trouble remembering how Ruby controllers link to layouts! :(
I assume we'd put something like "layout: layout_file_name" in here somewhere:def new
layout: file_name
#all other def stuffs
end
—
Reply to this email directly or view it on GitHub.
from askthem.
Awesome, thanks! Enjoy breakfast :)
from askthem.
Got it with some help here. I was hitting some weird error and had placed my render in the wrong position. I also had a double render error which was solved by commenting out the "new!" at the bottom of the "new" method in questions_controller.rb
from askthem.
Yeah, Inherited Resources add a little twist to the controller.
from askthem.
Related Issues (20)
- Add images for VA Senators HOT 1
- new users for action network HOT 1
- Staff member can designate user account as representing a partner organization HOT 1
- When asking user is partner organization, a question's TOS are updated to notify of sharing of signatures with partner organization
- Staff members can download CSV of question signers basic information HOT 1
- homepage copy fix
- issue w/ old session? HOT 6
- Internet slowdown day modal HOT 2
- Homepage blurbs not being set as default HOT 4
- increase height of HonestAds widget zip-code box - for FF visitors
- on /map, some city names show Q's, but none listed in /questions HOT 1
- A user's email address can be turned off for notifications HOT 1
- Process AWS SNS bounce notifications by disabling user's email
- images briefly broken on production HOT 6
- name alignment with profile photos got a little wonky HOT 3
- widget design enhancements - seeking volunteer time on useful new tools
- site-wide enhancements to info display & new features
- old verified Twitter avatars not displaying as expected? HOT 2
- PPF devops tasks January 2016 - for time estimates
- reboot site-wide Recent Questions view HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from askthem.